For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > October 2007 > Unable to load dynamic library









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Unable to load dynamic library
Jeff Tanner

2007-10-26, 10:04 pm


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


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com