Make, Gcc And Mysql Compilation
My make command is failing.
I have taken the embedded server command example from the mysql documentation plus the make command. error is .. /usr/bin/ld cannot find -lmysqlclient collect 2 : ld returned 1 exit status ANy ideas ? I am using redhat 7.3. Mysql is installed. I am a newbie. Do I need to set my PATH to something ? Is mysqlclient supposed to be a filename or a function within a file name ? Presumably MYSQL does not need to be running at compilation time ? Maybe I need to configure MYSQL to use an embed option - but surely this would cause a runtime error rather than MAKE compilation error. Any ideas ? (ps. make confuses me entirely). |
well what the error literally means is that it can not find the mysqlclient library. it is after a file called libmysqlclient.so.10 (10 is thie most recent afaik) this could come from a number of places, depending on where you are installnig from. if it's from rpm on redhat then it should be in the mysql-3.23.49-3.i386.rpm package. do a locate or find for the file (eg find / -iname libmysql*) and see what turns up. if it's not there, install it, if it is then ensure that it's path is defined in /etc/ld.so.conf (the rpm info on rpmfind.net says it should be at /usr/lib/mysql/libmysqlclient.so.10 for your system). so add /usr/lib/mysql and try again, after running ldconfig.
|
All times are GMT -5. The time now is 04:11 PM. |