Menu

libmysqlclient_r.so.10 not found

Help
Anonymous
2003-07-11
2012-09-19
  • Anonymous

    Anonymous - 2003-07-11

    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

     
    • Anonymous

      Anonymous - 2003-10-06

      link to the file libmysqlclient_r.so.10:

      > ln -s libmysqlsqlclient_r.so.10 libmysqlclient.so

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.