11-05-2010
4,
0
Join Date: Oct 2010
Last Activity: 5 November 2010, 12:50 PM EDT
Posts: 4
Thanks Given: 0
Thanked 0 Times in 0 Posts
In some old documentation on mysql-connector-odbc, I read that in the case of missing library's, you should use the --nodeps option. Also one should make sure that the missing libs are in the path or are set in LD_LIBRARY_PATH.
rpm -Uvh --nodeps mysql-connector-odbc-5.1.7-0.i386.rpm gives the following output:
Preparing... ########################################### [100%]
1:mysql-connector-odbc ########################################### [100%]
myodbc-installer: error while loading shared libraries: libodbc.so.1: cannot open shared object file: No such file or directory
waarschuwing: %post(mysql-connector-odbc-5.1.7-0.i386) scriptlet failed, exit status 127
In /etc/profile.d I have created a file odbcini.sh with the following content:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib
This solved my problem