Download your favorite Linux distribution at LQ ISO.
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.


  Search this Thread
Old 06-03-2005, 12:57 PM   #1
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

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/' - 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, 01:26 PM   #2
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 and 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, 01:43 PM   #3
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 929

Original Poster
Rep: Reputation: 30
I haven't the faintest. I looked for, and it's located in /usr/lib/php/extensions, like it's apparently supposed to be. I don't have 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?


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 07:18 AM
cron NOT running php script ??!! hendrixx Programming 1 01-19-2005 05:36 AM
php script not running in FC2 benjam Fedora 2 08-09-2004 02:47 PM
MySQL and PHP: incompatible libmysqlclient library dciric Linux - Software 1 05-31-2004 12:18 PM
problems running php script rhuser Linux - Software 5 02-14-2003 01:01 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration