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?