Subject: | Net-SSLeay fails to look at /usr/lib64 on 64 bit systems |
When building Net::SSLeay on a 64 bit server, it looks for libraries in
/usr/lib instead of /usr/lib64:
gcc -shared -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic SSLeay.o
-o blib/arch/auto/Net/SSLeay/SSLeay.so \
-L/usr -L/usr/lib -lssl -lcrypto -lz \
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/Net/SSLeay/SSLeay.so] Error 1
[user@freelancer Net-SSLeay-1.32]$ ls -l /usr/lib64/libz.so.1
lrwxrwxrwx 1 root root 13 Sep 19 12:38 /usr/lib64/libz.so.1 -> libz.so.1.2.3