[Zope] Need help!! Compile error "ld: fatal: library -lmysqlclient: not found"

Tri Quach tquach@k12.hi.us
Mon, 19 May 2003 16:51:13 -1000


This is a multi-part message in MIME format.

--Boundary_(ID_9hre2cDXJeZny8kJ9tLNYQ)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: quoted-printable

Hello,

Below is my compile output.  What shoud I do to fix this error? =20

Thank you for your help,
Tri.



leka(root)# =
/usr/local/Zope-2.5.0/Zope-2.5.0-solaris-2.6-sparc/bin/python setup.py =
build
running build
running build_py
not copying CompatMysqldb.py (output up-to-date)
not copying _mysql_exceptions.py (output up-to-date)
not copying MySQLdb/__init__.py (output up-to-date)
not copying MySQLdb/converters.py (output up-to-date)
not copying MySQLdb/connections.py (output up-to-date)
not copying MySQLdb/cursors.py (output up-to-date)
not copying MySQLdb/sets.py (output up-to-date)
not copying MySQLdb/times.py (output up-to-date)
not copying MySQLdb/constants/__init__.py (output up-to-date)
not copying MySQLdb/constants/CR.py (output up-to-date)
not copying MySQLdb/constants/FIELD_TYPE.py (output up-to-date)
not copying MySQLdb/constants/ER.py (output up-to-date)
not copying MySQLdb/constants/FLAG.py (output up-to-date)
not copying MySQLdb/constants/REFRESH.py (output up-to-date)
not copying MySQLdb/constants/CLIENT.py (output up-to-date)
running build_ext
building '_mysql' extension
skipping _mysql.c (build/temp.solaris-2.8-sun4u-2.1/_mysql.o up-to-date)
gcc -shared build/temp.solaris-2.8-sun4u-2.1/_mysql.o =
-L/usr/local/mysql/lib/libmysqlclient.a -lmysqlclient -lz -o =
build/lib.solaris-2.8-sun4u-2.1/_mysql.so
ld: fatal: library -lmysqlclient: not found
ld: fatal: File processing errors. No output written to =
build/lib.solaris-2.8-sun4u-2.1/_mysql.so
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

--Boundary_(ID_9hre2cDXJeZny8kJ9tLNYQ)
Content-type: text/html; charset=iso-8859-1
Content-transfer-encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2716.2200" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Below is my compile output.&nbsp; What =
shoud I do=20
to fix this error?&nbsp; </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thank you for your help,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Tri.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>leka(root)#=20
/usr/local/Zope-2.5.0/Zope-2.5.0-solaris-2.6-sparc/bin/python setup.py=20
build<BR>running build<BR>running build_py<BR>not copying =
CompatMysqldb.py=20
(output up-to-date)<BR>not copying _mysql_exceptions.py (output=20
up-to-date)<BR>not copying MySQLdb/__init__.py (output =
up-to-date)<BR>not=20
copying MySQLdb/converters.py (output up-to-date)<BR>not copying=20
MySQLdb/connections.py (output up-to-date)<BR>not copying =
MySQLdb/cursors.py=20
(output up-to-date)<BR>not copying MySQLdb/sets.py (output =
up-to-date)<BR>not=20
copying MySQLdb/times.py (output up-to-date)<BR>not copying=20
MySQLdb/constants/__init__.py (output up-to-date)<BR>not copying=20
MySQLdb/constants/CR.py (output up-to-date)<BR>not copying=20
MySQLdb/constants/FIELD_TYPE.py (output up-to-date)<BR>not copying=20
MySQLdb/constants/ER.py (output up-to-date)<BR>not copying=20
MySQLdb/constants/FLAG.py (output up-to-date)<BR>not copying=20
MySQLdb/constants/REFRESH.py (output up-to-date)<BR>not copying=20
MySQLdb/constants/CLIENT.py (output up-to-date)<BR>running =
build_ext<BR>building=20
'_mysql' extension<BR>skipping _mysql.c=20
(build/temp.solaris-2.8-sun4u-2.1/_mysql.o up-to-date)<BR>gcc -shared=20
build/temp.solaris-2.8-sun4u-2.1/_mysql.o=20
-L/usr/local/mysql/lib/libmysqlclient.a -lmysqlclient -lz -o=20
build/lib.solaris-2.8-sun4u-2.1/_mysql.so<BR>ld: fatal: library =
-lmysqlclient:=20
not found<BR>ld: fatal: File processing errors. No output written to=20
build/lib.solaris-2.8-sun4u-2.1/_mysql.so<BR>collect2: ld returned 1 =
exit=20
status<BR>error: command 'gcc' failed with exit status=20
1</FONT></DIV></BODY></HTML>

--Boundary_(ID_9hre2cDXJeZny8kJ9tLNYQ)--