taliez Posted January 7, 2015 Share Posted January 7, 2015 (edited) hi all, this is my setup Apache/2.2.15 (Unix) PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27) CentOS release 6.6 i am having intermmittent issues whenever in install pdo_oci and oci8 for PHP following this procedure http://shiki.me/blog/installing-pdo_oci-and-oci8-php-extensions-on-centos-6-4-64bit/ this is the full error [root@localhost ~]# php -vPHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - /usr/lib64/php/modules/oci8.so: undefined symbol: php_checkuid in Unknown on line 0PHP Warning: PHP Startup: PDO_OCI: Unable to initialize module location of oci8 [root@localhost ~]# cd /usr/lib64/php/[root@localhost php]# lltotal 8drwxr-xr-x. 2 root root 4096 Jan 6 20:16 builddrwxr-xr-x. 2 root root 4096 Jan 6 20:16 modules[root@localhost php]# cd modules/[root@localhost modules]# lltotal 4052-rwxr-xr-x. 1 root root 69304 Dec 19 13:32 curl.so-rwxr-xr-x. 1 root root 2708336 Dec 19 13:32 fileinfo.so-rwxr-xr-x. 1 root root 46152 Dec 19 13:32 gmp.so-rwxr-xr-x. 1 root root 41576 Dec 19 13:32 json.so-rwxr-xr-x. 1 root root 49288 Dec 19 13:32 mssql.so-rwxr-xr-x. 1 root root 482372 Jan 6 14:15 oci8.so<<<<<========-rwxr-xr-x. 1 root root 20256 Dec 19 13:32 pdo_dblib.so-rwxr-xr-x. 1 root root 124216 Jan 6 13:32 pdo_oci.so-rwxr-xr-x. 1 root root 101784 Dec 19 13:32 pdo.so-rwxr-xr-x. 1 root root 25984 Dec 19 13:32 pdo_sqlite.so-rwxr-xr-x. 1 root root 265584 Dec 19 13:32 phar.so-rwxr-xr-x. 1 root root 45744 Dec 19 13:32 sqlite3.so-rwxr-xr-x. 1 root root 41008 Dec 19 13:32 sybase_ct.so-rwxr-xr-x. 1 root root 94808 Dec 19 13:32 zip.so[root@localhost modules]# [root@localhost modules]# cd /etc/php.d[root@localhost php.d]# lltotal 56-rw-r--r--. 1 root root 49 Dec 19 13:32 curl.ini-rw-r--r--. 1 root root 57 Dec 19 13:32 fileinfo.ini-rw-r--r--. 1 root root 47 Dec 19 13:32 gmp.ini-rw-r--r--. 1 root root 49 Dec 19 13:32 json.ini-rw-r--r--. 1 root root 51 Dec 19 13:32 mssql.ini-rw-r--r--. 1 root root 18 Jan 6 14:16 oci8.ini-rw-r--r--. 1 root root 59 Dec 19 13:32 pdo_dblib.ini-rw-r--r--. 1 root root 47 Dec 19 13:32 pdo.ini-rw-r--r--. 1 root root 22 Jan 6 13:59 pdo_oci.ini-rw-r--r--. 1 root root 61 Dec 19 13:32 pdo_sqlite.ini-rw-r--r--. 1 root root 49 Dec 19 13:32 phar.ini-rw-r--r--. 1 root root 55 Dec 19 13:32 sqlite3.ini-rw-r--r--. 1 root root 59 Dec 19 13:32 sybase_ct.ini-rw-r--r--. 1 root root 47 Dec 19 13:32 zip.ini[root@localhost php.d]# more oci8.iniextension=oci8.so but if i do this [root@localhost php.d]# rm -fr oci8.ini[root@localhost php.d]# lltotal 52-rw-r--r--. 1 root root 49 Dec 19 13:32 curl.ini-rw-r--r--. 1 root root 57 Dec 19 13:32 fileinfo.ini-rw-r--r--. 1 root root 47 Dec 19 13:32 gmp.ini-rw-r--r--. 1 root root 49 Dec 19 13:32 json.ini-rw-r--r--. 1 root root 51 Dec 19 13:32 mssql.ini-rw-r--r--. 1 root root 59 Dec 19 13:32 pdo_dblib.ini-rw-r--r--. 1 root root 47 Dec 19 13:32 pdo.ini-rw-r--r--. 1 root root 22 Jan 6 13:59 pdo_oci.ini-rw-r--r--. 1 root root 61 Dec 19 13:32 pdo_sqlite.ini-rw-r--r--. 1 root root 49 Dec 19 13:32 phar.ini-rw-r--r--. 1 root root 55 Dec 19 13:32 sqlite3.ini-rw-r--r--. 1 root root 59 Dec 19 13:32 sybase_ct.ini-rw-r--r--. 1 root root 47 Dec 19 13:32 zip.ini[root@localhost php.d]# php -vPHP Warning: PHP Startup: PDO_OCI: Unable to initialize moduleModule compiled with module API=20090626PHP compiled with module API=20100525These options need to match in Unknown on line 0PHP 5.4.36 (cli) (built: Dec 19 2014 06:28:27)Copyright © 1997-2014 The PHP GroupZend Engine v2.4.0, Copyright © 1998-2014 Zend Technologies no errror on PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - /usr/lib64/php/modules/oci8.so: undefined symbol: php_checkuid in Unknown on line 0 [root@localhost php.d]# thanks in advance Edited January 7, 2015 by taliez Quote Link to comment https://forums.phpfreaks.com/topic/293719-unable-to-load-dynamic-library-usrlib64phpmodulesoci8so/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.