Operating System - HP-UX
1756747 Members
3524 Online
108852 Solutions
New Discussion юеВ

Re: Perl DBD mysql /usr/bin/ld: Can't find library: "z"

 
BenIsCool
Frequent Advisor

Perl DBD mysql /usr/bin/ld: Can't find library: "z"

Hello,

pa-risc hpux 11.11

I am trying to install dbd mysql

when I do a make it comes back with:

Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
rm -f blib/arch/auto/DBD/mysql/mysql.sl
LD_RUN_PATH="/opt/iexpress/mysql/lib/mysql:/usr/local/lib:/opt/openssl/lib" /usr/bin/perl myld /usr/bin/ld -b +vnocompatwarnings dbdimp.o mysql.o -o blib/arch/auto/DBD/mysql/mysql.sl \
-L/opt/iexpress/mysql/lib/mysql -lmysqlclient -lz -lnsl -lm -L/opt/openssl/lib -lssl -lcrypto \

/usr/bin/ld: Can't find library: "z"
*** Error exit code 1

Stop.



Can anyone help me?

Thank you
Ben
2 REPLIES 2
smatador
Honored Contributor

Re: Perl DBD mysql /usr/bin/ld: Can't find library: "z"

Hi,
Not sure at all but perhaps an idea about perl, look at this thread. Maybe your problem is about libz.a with perl and mysql ...
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1041031
Hope it could help
BenIsCool
Frequent Advisor

Re: Perl DBD mysql /usr/bin/ld: Can't find library: "z"

Hello,

Thank you.

I am not sure if this is the right thing to do but it seemed to work:

I edited the Makefile and added a -L to look in the lib directory. I seems like the variable LD_RUN_PATH was not being recognized by ld.

Makefile
-----
.
.
EXTRALIBS = -L/opt/iexpress/mysql/lib/mysql -L/usr/local/lib -lmysqlclient -lz -L/opt/openssl/lib -l
ssl -lcrypto
LDLOADLIBS = -L/opt/iexpress/mysql/lib/mysql -L/usr/local/lib -lmysqlclient -lz -lnsl -lm -L/opt/ope
nssl/lib -lssl -lcrypto
.
.
------