Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing ZLIB in Linux Server

Tags:

linux

zlib

I want to install ZLIB in the Linux server. My server account is: /home/myname . I download and extract ZLIB on my account properly. Then, I enter to ZLIB1.2.6 folder and run the command:

./configure --prefix=/home/myname/zlib

But, it gives error:

-bash: ./configure: Permission denied

Can anybody help me why is this happening ?

like image 313
alessandro Avatar asked Apr 02 '12 16:04

alessandro


People also ask

How do I know if zlib is installed on Linux?

1 Answer. Show activity on this post. On Ubuntu if you install Python 3 using apt, e.g. sudo apt install python3. 8 , zlib will be installed as a dependency.


1 Answers

Ok, if you are using Debian, you should do:

su

to become root

apt-get update

to refresh the package lists, then

apt-cache search zlib

to check the relevant packages in the lists you have just updated, then

apt-get install <whatever_package_you_found_earlier>

I suggest using regular expression as search strings for apt-cache, since they are more accurate, as in

apt-cache search ^zlib

to return only package names starting with zlib

like image 87
Victor Nițu Avatar answered Oct 20 '22 05:10

Victor Nițu