LinuxQuestions.org
Review your favorite Linux distribution.
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
 
Search this Thread
Old 06-03-2005, 01:57 PM   #1
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

Rep: Reputation: 30
libmysqlclient error when running a php script


I've written a tiny php server which binds itself to a socket, and waits for someone to send it something. All appears to be good on that front.

However, when I run it I get this:

[me@localhost ~]$ ./server.php
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php/extensions/mysql.so' - libmysqlclient.so.12: cannot open shared object file: No such file or directory in Unknown on line 0


This doesn't appear to break something, so I'm most likely not going to do anything about it (like recompile php and/or MySQL, as most of the related threads here suggest). It just puzzles me, because I'm not using MySQL anywhere in the script (I don't even have MySQL installed, which doubtless is the reason for the warning).

Can I disable this warning somehow?
 
Old 06-03-2005, 02:26 PM   #2
huibert.alblas
Member
 
Registered: Jan 2004
Location: Duesseldorf /Germany
Distribution: Gentoo amd64 / Debian
Posts: 226

Rep: Reputation: 30
I think the php CLI tries to load the mysql lib, regardless if it is used or not.
The location "/usr/lib/php/extensions/" looks suspicious to me, but this is very distro spezific.

For fun look where mysql.so and libmysqlclient.so.12 are located and make a symlink from "/usr/lib/php/extensions/" to these.

Maybe php Cli is compiled with a different(wrong) library path?
 
Old 06-03-2005, 02:43 PM   #3
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

Original Poster
Rep: Reputation: 30
I haven't the faintest. I looked for mysql.so, and it's located in /usr/lib/php/extensions, like it's apparently supposed to be. I don't have libmysqlclient.so.12 anywhere on my system, though (like I said, I don't have MySQL installed).

I'm not really looking to solve the problem as much as I am for a way to make php not complain so much. Maybe a "quiet" option or something?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron NOT running php script ??!! hendrixx Linux - Software 2 11-15-2006 08:18 AM
cron NOT running php script ??!! hendrixx Programming 1 01-19-2005 06:36 AM
php script not running in FC2 benjam Fedora 2 08-09-2004 03:47 PM
MySQL and PHP: incompatible libmysqlclient library dciric Linux - Software 1 05-31-2004 01:18 PM
problems running php script rhuser Linux - Software 5 02-14-2003 02:01 PM


All times are GMT -5. The time now is 03:22 PM.

Main Menu
Advertisement
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