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