I am trying to install the MySQLdb module on my webserver, and have installed it in a non-standard directory (due to my permissions). Upon trying to use the module, I get the following error:
"Traceback (innermost last):
File "test.cgi", line 40, in ?
import MySQLdb
File "/home/leif/lib/python/MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError: libmysqlclient_r.so.10: cannot open shared object file: No such file or directory"
The strange part is that the libmysqlclient_r.so.10 exists in one of the default paths in the setup.py script (/usr/local/mysql/lib/mysql), and so I cannot figure out why the module can not find it.
I installed it using the command:
python setup.py install --home=~
and it installed to:
/home/leif/lib/python/
Can anyone tell me of a way to get the module to find the mySQL .so files? I do not have root permissions (and am a unix newbie), so I am not sure what to do myself.
Thanks,
James Bekkema
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am trying to install the MySQLdb module on my webserver, and have installed it in a non-standard directory (due to my permissions). Upon trying to use the module, I get the following error:
"Traceback (innermost last):
File "test.cgi", line 40, in ?
import MySQLdb
File "/home/leif/lib/python/MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError: libmysqlclient_r.so.10: cannot open shared object file: No such file or directory"
The strange part is that the libmysqlclient_r.so.10 exists in one of the default paths in the setup.py script (/usr/local/mysql/lib/mysql), and so I cannot figure out why the module can not find it.
I installed it using the command:
python setup.py install --home=~
and it installed to:
/home/leif/lib/python/
Can anyone tell me of a way to get the module to find the mySQL .so files? I do not have root permissions (and am a unix newbie), so I am not sure what to do myself.
Thanks,
James Bekkema
link to the file libmysqlclient_r.so.10:
> ln -s libmysqlsqlclient_r.so.10 libmysqlclient.so