Find the answer to your Linux question:
Results 1 to 2 of 2
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. #1
    Just Joined!
    Join Date
    Apr 2009
    Location
    Philippines
    Posts
    23

    Question 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,

  2. #2
    Linux Engineer b2bwild's Avatar
    Join Date
    Jul 2008
    Location
    Behind You!
    Posts
    1,108
    /usr/bin/ld is a GNU linker. which links a program to library.

    Its confusing that what "-lz" is try searching lz on synaptic.
    look for a missing library. and install it.
    Never make any misteaks.

    Read my Blog at --> Penguin Inside Subscribe Feed

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •