I am using mysqldb and pydev eclipse. I have successfully compiled mysqldb 1.23 and now I want to import it. mysqldb 1.23 needs the libmysqlclient.18.dylib library, which in my case is in / usr / local / mysql / lib. Therefore, when I run my test program in eclipse, it crashes because it does not find the correct library. So I need to tell eclipse where to find the libs.
How should I do it?
What and where in eclipse / pydev should I say that libmysqlclient.18.dylib is in the function above?
The error message I receive
ImportError: dlopen(/path/to/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so, 2): Library not loaded: libmysqlclient.18.dylib
Referenced from: /path/to/.python-eggs/MySQL_python-1.2.3-py2.7-macosx-10.6-intel.egg-tmp/_mysql.so
Reason: image not found
source
share