Missing mysql.so?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm trying to fix PHP and MySQL on a Debian woody system that might be pretty messed up. The system has some parts, perhaps some libraries, in Debian testing with the bulk of the system in stable. I thought it's been running okay since I made these system changes, but today I had to reboot it and php and MySQL failed.

I've removed and reinstalled the Debian packages from stable:
cn2:/var/www/centernet/htdocs/phpmyadmin# apt-get install -t stable php4 php4-cgi php4-common php4-mysql php4-mcal php4-cli
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  php4 php4-cgi php4-cli php4-common php4-mcal php4-mysql 
<snip>
Setting up php4 (4.1.2-7.woody4) ...
<snip>
Setting up php4-common (4.3.10-15) ...
Setting up php4-cli (4.3.10-15) ...
Setting up php4-mcal (4.1.2-7.woody4) ...
<snip>
Setting up php4-mysql (4.1.2-7.woody4) ...
<snip>
Setting up php4-cgi (4.1.2-7.woody4) ...

Is it normal that the php4, php4-mysql, php4-mcal and php4-cgi versions are all 4.1.2, but that php4-common and php4-cli are 4.3.10?

When I try to gracefully restart Apache, I get these messages in the Apache error logs:
[Tue May 31 13:08:42 2005] [notice] SIGUSR1 received.  Doing graceful restart
PHP Warning:  Unable to load dynamic library '/usr/lib/php4/20010901/mysql.so' - /usr/lib/libmysqlclient.so.10: symbol errno, version GLIBC_2.0 not defined in file libc.so.6 with link time reference in Unknown on line 0
[Tue May 31 13:08:43 2005] [notice] Apache/1.3.33 (Debian GNU/Linux) PHP/4.1.2 configured -- resuming normal operations

Running something like phpmyadmin from the command line gives a similar result:
cn2:/var/www/centernet/htdocs/phpmyadmin# php4 index.php 
PHP Warning:  Unknown(): Unable to load dynamic library '/usr/lib/php4/20020429/mysql.so' - /usr/lib/php4/20020429/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
cannot load MySQL extension,<br />please check PHP Configuration.<br />
<a href="./Documentation.html#faqmysql" target="documentation">Documentation</a>
cn2:/var/www/centernet/htdocs/phpmyadmin# 

Here are the files in /usr/lib/php4/:

cn2:/var/www/centernet/logs# ls -lR /usr/lib/php4/
/usr/lib/php4/:
total 16
drwxr-xr-x  2 root root 4096 May 31 13:07 20010901
drwxr-xr-x  2 root root 4096 May 31 13:07 20020429
drwxr-xr-x  2 root root 4096 May 31 13:07 libexec
-rwxr-xr-x  1 root root  278 May  9 04:55 maxlifetime

/usr/lib/php4/20010901:
total 84
-rw-r--r--  1 root root 47224 May 23 09:04 mcal.so
-rw-r--r--  1 root root 35716 May 23 09:04 mysql.so

/usr/lib/php4/20020429:
total 0

/usr/lib/php4/libexec:
total 0
cn2:/var/www/centernet/logs# 

I tried linking or copying the files in 20010901 to 20020429, but that gave an error about a mismatch.

Any suggestions on what I can try to get this system back in working order? If possible, I'd like to stay within the Debian system, using Debian package management commands rather than downloading source and recompiling.

Thanks for reading through all this and for your advice and suggestions.

-Kevin Zembower

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux