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

Michael Griego mgriego at utdallas.edu
Sat Jun 25 16:47:47 CEST 2005


Did you install the zlib-devel package too?  I think not...

--Mike


admin at zgora.ru wrote:

>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...
>
>
>- 
>List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>  
>



More information about the Freeradius-Users mailing list