try to copy mysql libraries to /usr/local/lib and /usr/lib cp -a /usr/local/MySQL/lib/MySQL/* /usr/local/lib cp -a /usr/local/MySQL/lib/MySQL/* /usr/lib
>From: "YANG" <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Ask for Linux+MySQL installation help >Date: Fri, 2 Nov 2001 13:43:46 +0800 (CST) > >Dear Sir: > I want to ask some questions about Redhat Linux+MySQL installation. >1. At the Redhat Linux 6.2 opration system, I install MySQL database 3.23.43. Commands is as follws: ># cd /usr/local ># tar –zxvf MySQL-3.23.443.tar.gz ># mv MySQL-3.23.43 /usr/local/MySQL ># cd /usr/local/MySQL ># ./configure –prefix=/usr/local/MySQL ># make ># make install >Instalation Success; >2. Then, I write a small program test.c to test the mysql database C API. The makefile is as follows: ># gcc –I/usr/local/MySQL/include/MySQL –c test.c ># gcc –o test test.o –L/usr/local/MySQL/lib/MySQL –l/MySQLclient >Compile and link all success; >3. But, when I run the program, error occurs. Error message is as follows: ># ./test: error in loading shared libraries:libMySQLclient.so.6 cannot open shared object file: No such file or directory >4. I install MySQL Rpm Package in another computer. The version of Redhat Linux and MySQL is same as that mentioned previously. Instalation command is as follows: ># rpm –i MySQL-3.23.43-1.i386.rpm MySQL-client-3.23.43-1.i386.rpm MySQL-devel-3.23.43-1.i386.rpm MySQL-shared-3.23.43-1.i386.rpm > I compile and link it with same makefile. This time, everything is OK. > Because I want use Linux+MySQL+Apache+PHP in our system, I want install MySQL database with the first method. So I ask for helping as soon as possible. Thanks. > >My E-mail address is: [EMAIL PROTECTED] > > > > > > > _________________________________________________________________ 您可以在 MSN Hotmail 站点 http://www.hotmail.com/cn 免费收发电子邮件 --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php