LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-30-2004, 02:45 AM   #1
alitrix
Member
 
Registered: Jun 2003
Location: Netherlands, The
Distribution: Ubuntu, Kernel 2.6.7
Posts: 169

Rep: Reputation: 30
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)
 
Old 01-26-2005, 11:56 AM   #2
alan8373
LQ Newbie
 
Registered: Jul 2003
Distribution: SuSE, Debian, Slack, Ubuntu, Gentoo
Posts: 23

Rep: Reputation: 15
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!
 
Old 05-23-2007, 08:50 AM   #3
mmulligan03
LQ Newbie
 
Registered: May 2007
Distribution: Red Hat 4, Fedora Core 4
Posts: 1

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
courier-authlib problems loading libmysqlclient.so.14 and libcourierauthcommon.so.0 msilvers Linux - General 0 08-29-2005 06:55 PM
courier-authlib problems loading libmysqlclient.so.14 and libcourierauthcommon.so.0 msilvers Linux - Software 0 08-28-2005 02:38 PM
PHP5 compiling problems Ephracis Linux - Software 10 02-10-2005 01:45 PM
How to/Problems - Apache2+PHP5+PostgreSQL8 schneider Linux - Software 1 02-02-2005 08:19 AM
Problems configuring apache for php5 Besnell Mandriva 3 12-28-2004 09:01 AM


All times are GMT -5. The time now is 03:31 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration