Install zlib in ubuntu

Source: Internet
Author: User

1. When installing a software in ubuntu, there is a prompt that there is no zlib library, so you can search for installation methods online. There are many methods. (1) Search directly in the Software Center and the result is not found. (2) In the terminal input apt-get insatll zlib1g-dev also failed, appear: (3) in the terminal input wget http://www.zlib.net/zlib-1.2.3.tar.gz, first download, in installation (4) directly online download a software package for installation. Www.2cto.com 2. I first tried the fourth method and directly downloaded a software package. The result is being executed. /configure, the following line of bash appears :. /configure:/bin/sh ^ M: bad interpreter: No such file or directory is searched again. 3. No way. I can only try other methods. I downloaded a file using the third method above, as shown below, see the following: At first, I thought the command was entered incorrectly and the result was correct. So I used file command to view this file, to see what is a file in the end, the results show: file zlib-1.2.3.tar.gz zlib-1.2.3.tar.gz: HTML document www.2cto.com is not a source package, but an HTML page, check it to understand.
The original wget http://www.zlib.net/zlib-1.2.3.tar.gzhas a HTML page, pointing to a page,
The downloaded package is contained in a link on this page. This method fails again. 4. No way. I have to find another method. Later I thought that it may be because the downloaded software package was faulty when I used method (4,
So I searched and found a new software package. The installation was successful according to the README document. How can I check whether the installation is successful? whereis zlib. * If the installation is successful, related information will appear. From the column of yuzhongshi

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.