I'm trying to install git from source as a non-root user. After typing "make" the following error occurs:
Link git-daemon
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
I already installed libz from source and set the environment variable LD_LIBRARY_PATH to "$HOME/lib". This dir contains libz.a, libz.so, libz.so.1 and libz.so.1.2.5.
What am I doing wrong?
-lzoption on either a GNU based Linux box or a BSD based OS X system. It sounds like there may be a bug in the package you're trying to install. What platform are you attempting to install git-daemon on? – d34dh0r53 Dec 23 '11 at 17:55-l, with an argument "z"; meaning "link againstlibz", it exists on all linkers in some form or other. – grawity Dec 23 '11 at 19:16