As you are compiling php yourself, it sounds like you have a
pre-installed version of php somewhere Jeff that needs to be
uninstalled. Use smart (if you have it) to look for any
pre-installed versions of php that need removing.
Regards
Keith Roberts
On Fri, 26 Oct 2007, Jeff Tanner wrote:
To: php-install@xxxxxxxxxxxxx
From: Jeff Tanner <jeff.tanner@xxxxxxxxxxxxxxxx>
Subject: Unable to load dynamic library
I did a build of PHP 5.1.4, and it created and applied shared extensions within:
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-non-zts-20050922/
Performed for several extensions "sudo peardev install pecl/pdo"... /apc, ... /json, ... /memcache, etc...
And all extensions were loaded into:
/usr/local/lib/php/extensions/no-debug-non-zts-20050922/
I verified that these extensions were either added by the PHP build or by
jeff@us:/usr/local/lib/php/extensions/no-debug-non-zts-20050922$ ls -al
total 4532
drwxr-xr-x 2 root root 4096 2007-10-26 17:17 .
drwxr-xr-x 3 root root 4096 2007-10-26 17:19 ..
-rwxr-xr-x 1 root root 426596 2007-10-26 15:27 apc.so
-rwxr-xr-x 1 root root 94377 2007-10-26 14:27 json.so
-rwxr-xr-x 1 root root 197098 2007-10-26 16:56 memcache.so
-rwxr-xr-x 1 root root 132023 2007-10-26 17:17 pdo_mysql.so
-rwxr-xr-x 1 root root 283629 2007-10-26 17:17 pdo.so
-rwxr-xr-x 1 root root 1463264 2007-10-26 17:17 pdo_sqlite.so
-rwxr-xr-x 1 root root 669722 2007-10-25 13:12 xdebug.so
And I modified php.ini:
extension=apc.so
extension=memcache.so
extension=pdo.so
extension=pdo_mysql.so
extension=pdo_sqlite.so
extension=json.so
IN addition I added [xdebug] extension
zend_extension="/usr/local/lib/php/extensions/no-debug-non-zts-20050922/xdebug.so"
However, when starting a php page with phpinfo(), the PHP info shows the [xdebug] info, but fails to show the other shared extensions:
jeff@us:/var/log/apache2$ tail error.log
PHP Warning: PHP Startup: Unable to load dynamic library './apc.so' - ./apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './memcache.so' - ./memcache.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './pdo.so' - ./pdo.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './pdo_mysql.so' - ./pdo_mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './pdo_sqlite.so' - ./pdo_sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library './json.so' - ./json.so: cannot open shared object file: No such file or directory in Unknown on line 0
What am I doing wrong???
-- Jeff in Seattle
--
------------------------------------------------------------
http://www.karsites.net
http://www.raised-from-the-dead.org.uk
This email address is challenge-response protected with
http://www.tmda.net
------------------------------------------------------------
[Index of Archives]
[PHP Users]
[PHP Home]
[PHP on Windows]
[Kernel Newbies]
[PHP Classes]
[Postgresql]
[PHP Books]
[PHP Databases]
[PHP SOAP]