make error /usr/bin/ld: cannot find -lz

admin at zgora.ru admin at zgora.ru
Sat Jun 25 09:18:42 CEST 2005


PH> On Fri, Jun 24, 2005 at 02:58:14PM +0600, admin at zgora.ru wrote:
>> make faild with this error...

>> gcc -shared sql_mysql.lo -L/usr/lib -L/usr/lib/mysql
>> /usr/lib/libmysqlclient.so -lz -lm -lssl -lcrypto -Wl,-soname
>> -Wl,rlm_sql_mysql-1.0.1.so -o .libs/rlm_sql_mysql-1.0.1.so
>> /usr/bin/ld: cannot find -lz
>> collect2: ld returned 1 exit status
>> gmake[10]: *** [rlm_sql_mysql.la] Error 1
>> 
>> What is -lz ?

PH> zlib. mySQL depends on it, so I'm surprised you got
PH> mySQL in place without it...

[root at gate rpms]# ldconfig -p | grep libz
        libz.so.1 (libc6) => /usr/lib/libz.so.1
        libz.so.1 (libc6) => /lib/libz.so.1
[root at gate rpms]# rpm -qa | grep zlib
zlib1-1.2.1.1-3mdk
[root at gate rpms]#

zlib installed...





More information about the Freeradius-Users mailing list