LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error: command 'gcc' failed with exit status 1 (https://www.linuxquestions.org/questions/linux-software-2/error-command-gcc-failed-with-exit-status-1-a-720561/)

yuri16 04-20-2009 09:26 PM

error: command 'gcc' failed with exit status 1
 
Hi,

I'm trying to install libxml2 python module but I got these error:

/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

What seems to be the problem?

Thanks,

spacegctc 04-21-2009 01:27 AM

Sounds like you need to install zlib1g-dev. In Ubuntu you can find this package by running:
Code:

sudo aptitude
Then search (by pressing '/') for zlib1g-dev. When you find it pres '+' to marge it for install, then press 'g' twice to install.

If you're using fedora try:
Code:

sudo yum install zlib1g-dev
but note that I haven't verified that this works on fedora (I'm using Ubuntu at home and Fedora at work).


All times are GMT -5. The time now is 10:15 AM.