Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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).
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.