Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


LinkBack Search this Thread
Old 12-30-2004, 02:45 AM   #1
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:
root@AliTriX:~# apachectl start
Syntax error on line 238 of /etc/apache/httpd.conf:
Cannot load /usr/libexec/ into server: 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/ and run ldconfig so PHP5 can find the lib file.

root@AliTriX:~# cat /etc/
/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/ into server: /usr/libexec/ undefined symbol: mysql_drop_db
/usr/sbin/apachectl start: httpd could not be started
As you see, it still not working, cause of this reason:
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
lrwxrwxrwx   1 root root     24 2004-12-28 13:23 ->
lrwxrwxrwx   1 root root     20 2004-12-29 13:12 ->
lrwxrwxrwx   2 root root     24 2004-12-28 13:23 ->
-rwxr-xr-x   1 root root 213716 2004-05-20 01:00
-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
lrwxrwxrwx   1 root root     26 2004-12-28 13:23 ->
lrwxrwxrwx   1 root root     26 2004-12-28 13:23 ->
-rwxr-xr-x   1 root root 218900 2004-05-20 01:00
-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
As you see I have made a link from ->

So after doing some research on internet, I found a page on (don't have the URL anymore) that says:
The new MySQL uses 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 to me? (If yes, so I can give you my e-mail)
Old 01-26-2005, 11:56 AM   #2
LQ Newbie
Registered: Jul 2003
Distribution: SuSE, Debian, Slack, Ubuntu, Gentoo
Posts: 23

Rep: Reputation: 15

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

Old 05-23-2007, 08:50 AM   #3
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.


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 and msilvers Linux - General 0 08-29-2005 06:55 PM
courier-authlib problems loading and 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
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration