I read the included docs and still have a problem installing MySQL-python-0.9.2.
This is the error message
import thread # builtin
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
I am working on a RedHat 7.2 system:
Apache-1.3.27-1.7.2
Python-1.5.2-43.72
Zope-2.6.1
ZMySQLDA-2.0.8
MySQL-3.23.54a-3.72
I did use the export ZOPEBIN statement to run the install properly.
I also tried the ZMySQLDA-2.0.9b2, although not the 2.0.9b1 version.
Any ideas?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2003-04-10
Used MySQL-python-0.9.1 and was able to finally build this product.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I read the included docs and still have a problem installing MySQL-python-0.9.2.
This is the error message
import thread # builtin
/usr/bin/ld: cannot find -lmysqlclient_r
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
I am working on a RedHat 7.2 system:
Apache-1.3.27-1.7.2
Python-1.5.2-43.72
Zope-2.6.1
ZMySQLDA-2.0.8
MySQL-3.23.54a-3.72
I did use the export ZOPEBIN statement to run the install properly.
I also tried the ZMySQLDA-2.0.9b2, although not the 2.0.9b1 version.
Any ideas?
Used MySQL-python-0.9.1 and was able to finally build this product.
Read setup.py for the answer
You have to have som subset of the following libraries:
/usr/lib/libmysqlclient.a
/usr/lib/libmysqlclient.la
/usr/lib/libmysqlclient.so
/usr/lib/libmysqlclient.so.10
/usr/lib/libmysqlclient.so.10.0.0
/usr/lib/libmysqlclient_r.so
/usr/lib/libmysqlclient_r.so.10
/usr/lib/libmysqlclient_r.so.10.0.0
Perhaps you have to run
/sbin/ldconfig
after having acquired the libraries (I snatched them from a Mandrake 9.0 dist).
Flemming