PDA

View Full Version : Unable to load mysql library



fizzytsai
06-28-2010, 02:51 AM
I used to use "gcc -lmysqlclient ..." to compile my CGI+MySQL programs on HM. However, I cannot compile my programs successfully lately because of the following error:

/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status

It looks like the server misses "mysqlclient.so" library. HM tolds "Unfortunately that shared object is not available inside of the fake environment anymore." and "In the interim it might be better to statically compile the applications that you are trying to compile on our server on a different machine and upload the executable." I tried but I failed again because of "500 Internal Server Error."

Does anyone meet the same problem? Most of my programs are like this. I don't know how I can use HM if I cannot solve it.


:confused:

Treeluvin
07-04-2010, 02:33 AM
You should be able to compile against the current library here: /usr/lib64/libmysqlclient.so

3magicbeans
07-10-2010, 10:03 AM
It seems there is some technical problem with your coding...I will recommend you taking help from technical staff...:)