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-getinsatllzlib1g-dev also failed, appear :( 3) in the terminal input wgethttp: // www.zlib.net/zlib-1.2.3.tar.gz, download first, install (4) directly online download a software package for installation.

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) Enter wget http://www.zlib.net/zlib-1.2.3.tar.gzon on the terminal, download the package, and install

(4) download a software package from the Internet for installation.

2. I first tried the fourth method and directly downloaded a software package. The following line appears when I executed./configure.

Bash:./configure:/bin/sh ^ M: bad interpreter: No such file or directory

Then I searched again and finally did not solve the problem.

3. No way. You can only try other methods. Use the third method above to download an object, as shown below:

But it wasn't long before I was happy, and there was another problem in decompression. See the following:

At first, I thought the command was entered incorrectly and the result was correct. Then, run the file command to view the file and see what the file is. The result is as follows:

File zlib-1.2.3.tar.gz

Zlib-1.2.3.tar.gz: HTML document is not a source code package, but an HTML page, checked to understand.

Original wget requests. This method fails again.

4. No way. I had to find another method. Later I thought it was possible that when I used method (4), there was a problem with the downloaded software package. So I searched and found a new software package, the installation is successful according to the README document.

How can I check whether the installation is successful:

Whereis zlib .*

If the installation is complete, related information is displayed.

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.