LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   PHP5 having problems with libmysqlclient (https://www.linuxquestions.org/questions/linux-software-2/php5-having-problems-with-libmysqlclient-271800/)

alitrix 12-30-2004 02:45 AM

PHP5 having problems with libmysqlclient
 
After upgradnig my Slackware 9.1 => 10 , i'm having some problems with apache.


First of all, when I try to start it I get this:
Code:

root@AliTriX:~# apachectl start
Syntax error on line 238 of /etc/apache/httpd.conf:
Cannot load /usr/libexec/libphp5.so into server: libmysqlclient.so.10: cannot open shared object file: No such file or directory
/usr/sbin/apachectl start: httpd could not be started

After asking some places and searching on the internet I'v understand that I have to modify /etc/ld.so.conf and run ldconfig so PHP5 can find the lib file.

Code:

root@AliTriX:~# cat /etc/ld.so.conf
/usr/local/lib
/usr/X11R6/lib
/usr/i386-slackware-linux/lib
/opt/kde/lib
/usr/lib/qt/lib
/usr/local/mysql
/usr/i486-slackware-linux/lib
/usr/local/mysql
/usr/lib/mysql    <--- new line I append to it
root@AliTriX:~# apachectl start
Syntax error on line 238 of /etc/apache/httpd.conf:
Cannot load /usr/libexec/libphp5.so into server: /usr/libexec/libphp5.so: undefined symbol: mysql_drop_db
/usr/sbin/apachectl start: httpd could not be started
root@AliTriX:~#

As you see, it still not working, cause of this reason:
Code:

root@AliTriX:~# ls -al /usr/lib/mysql/
total 1948
drwxr-xr-x  2 root root  4096 2004-12-29 13:12 .
drwxr-xr-x  99 root root  36864 2004-12-16 03:54 ..
-rw-r--r--  1 root root  11094 2004-05-20 01:00 libdbug.a
-rw-r--r--  1 root root  34598 2004-05-20 01:00 libheap.a
-rw-r--r--  1 root root  14420 2004-05-20 01:00 libmerge.a
-rw-r--r--  1 root root 278378 2004-05-20 01:00 libmyisam.a
-rw-r--r--  1 root root  25330 2004-05-20 01:00 libmyisammrg.a
-rw-r--r--  1 root root 304838 2004-05-20 01:00 libmysqlclient.a
-rwxr-xr-x  1 root root    862 2004-05-20 01:00 libmysqlclient.la
lrwxrwxrwx  1 root root    24 2004-12-28 13:23 libmysqlclient.so -> libmysqlclient.so.12.0.0
lrwxrwxrwx  1 root root    20 2004-12-29 13:12 libmysqlclient.so.10 -> libmysqlclient.so.12
lrwxrwxrwx  2 root root    24 2004-12-28 13:23 libmysqlclient.so.12 -> libmysqlclient.so.12.0.0
-rwxr-xr-x  1 root root 213716 2004-05-20 01:00 libmysqlclient.so.12.0.0
-rw-r--r--  1 root root 312464 2004-05-20 01:00 libmysqlclient_r.a
-rwxr-xr-x  1 root root    896 2004-05-20 01:00 libmysqlclient_r.la
lrwxrwxrwx  1 root root    26 2004-12-28 13:23 libmysqlclient_r.so -> libmysqlclient_r.so.12.0.0
lrwxrwxrwx  1 root root    26 2004-12-28 13:23 libmysqlclient_r.so.12 -> libmysqlclient_r.so.12.0.0
-rwxr-xr-x  1 root root 218900 2004-05-20 01:00 libmysqlclient_r.so.12.0.0
-rw-r--r--  1 root root 112620 2004-05-20 01:00 libmystrings.a
-rw-r--r--  1 root root 245874 2004-05-20 01:00 libmysys.a
-rw-r--r--  1 root root 105144 2004-05-20 01:00 libnisam.a
-rw-r--r--  1 root root  5872 2004-05-20 01:00 libvio.a
root@AliTriX:~#

As you see I have made a link from libmysqlclient.so.10 -> libmysqclient.so.12

So after doing some research on internet, I found a page on MySQL.com (don't have the URL anymore) that says:
The new MySQL uses libmysqlclient.so.12 so the "old" programs that use version10 can't run anymore
(Which means, my linking of version10 to 12 won't help me in this case)


Is there any other solution that you people have?
Or maybe somebody can send me libmysqlclient.so.10 to me? (If yes, so I can give you my e-mail)

alan8373 01-26-2005 11:56 AM

Hi!
 
Were you able to find a solution to this? I'm having almost exactly the same problem with libmysqlclient.so.12 not being found, but libmysqlclient.so.14 existing. I'm also using slack 10. If you found a solution to this, please let me know here.

Thanks!

mmulligan03 05-23-2007 08:50 AM

Re-compile and install php with ./configure --with-mysql this will find the mysql library automatically.


All times are GMT -5. The time now is 11:08 AM.