ubantu mounted zlib method

Question: installed under ubantu zlib,

Try 1: sudo apt-get install zlib

err: E: No package zlib

Try 2: Use wget http://www.zlib.net/zlib-1.2.3.tar.gz, download it and then compile it yourself installation

err: HTTP request has been sent, awaiting response 404 Not Found ...
2016-01-10 23:23:50 Error 404: Not Found.

Solution:

zlib official website open, apt-get insatll zlib can not find the package, seemingly not in the software source inside? The solution is to open the ubuntu software center, search zlib, find zlib1g-dev package, the installation was successful.

Command line:

sudo apt-get install zlib1g-dev

Name Some packages can not be determined, it is possible to determine its name effective means of ubuntu software center,
 

How to install zlib and zlib-devel in the ubuntu

  In ubuntu software in source zlib and zlib-devel called the zlib1g.dev zlib1g
        $ sudo APT-GET install zlib1g
        $ sudo APT-GET install zlib1g.dev

       After the direct input to the command or not be installed. This requires that we first installed ruby.

       In ubuntu years, zlib called zlib1g, corresponding zlib-devel called zlib1g.dev. There is no default installation source zlib1g.dev. To find on packages.ubuntu.com.

       $sudo apt-get install ruby

       Then loaded zlib1g-dev on it

       $sudo apt-get install zlib1g-dev

Guess you like

Origin blog.csdn.net/BlueBirdssh/article/details/90720771