Re: pdo compilation question

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

 



Quoting Tim Rupp <caphrim007@xxxxxxxxx>:

Hi list, I hope this is the right area to ask,

I'm trying to compile PDO support in 5.2.6 and am following the
instructions here

http://us2.php.net/manual/en/pdo.installation.php

My compile line is the following



./configure  --enable-force-cgi-redirect \
        --disable-rpath \
        --with-bz2 \
        --with-db4=/usr \
        --with-curl \
        --with-gd \
        --enable-gd-native-ttf \
        --without-gdbm \
        --with-gettext \
        --with-ncurses \
        --with-gmp \
        --with-iconv \
        --with-openssl \
        --with-regex=system \
        --with-zlib \
        --with-layout=GNU \
        --enable-bcmath \
        --enable-exif \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-sysvsem \
        --enable-sysvshm \
        --enable-wddx \
        --with-kerberos \
        --with-ldap=shared \
        --with-mysql=shared \
        --enable-mbstring=all \
        --with-apxs2=/usr/sbin/apxs \
        --with-pgsql=shared \
        --with-mysqli \
        --with-freetype-dir=/usr/include/freetype2 \
        --with-mcrypt \
        --enable-soap \
        --enable-pcntl \
        --enable-pdo=shared \
        --with-sqlite=shared \
        --with-pdo-sqlite=shared \
        --with-pdo-mysql=shared \
        --with-pdo-pgsql=shared \
        --with-pdo-oci=shared


This config line I'm working with has been a growing one, so there may
be some things here that may or may not be needed. Anyway, Upon
compiling the above, I get the following error when I do a php -m



Warning: PHP Startup: Invalid library (maybe not a PHP library)
'pdo.so'  in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_mysql.so' -
/usr/local/lib/php/20060613/pdo_mysql.so: undefined symbol:
php_pdo_get_dbh_ce in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_pgsql.so' -
/usr/local/lib/php/20060613/pdo_pgsql.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/pdo_sqlite.so' -
/usr/local/lib/php/20060613/pdo_sqlite.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library
'/usr/local/lib/php/20060613/sqlite.so' -
/usr/local/lib/php/20060613/sqlite.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0





I've included the extensions in my php.ini file, but I'm completely
lost on where to go from here because the error is less than helpful.
The order that I've included them is

extension=pdo.so
extension=pdo_mysql.so
extension=pdo_pgsql.so
extension=pdo_sqlite.so
extension=sqlite.so


and they do exist, as shown here


-rwxr-xr-x  1 root root  364012 May 14  2007 apc.so
-rwxr-xr-x  1 root root  102531 Aug 18 14:25 ldap.so
-rwxr-xr-x  1 root root  120644 Aug 18 14:25 mysql.so
-rwxr-xr-x  1 root root  270860 Nov 13  2006 oci8.so
-rwxr-xr-x  1 root root  125246 Aug 18 14:25 pdo_mysql.so
-rwxr-xr-x  1 root root  100772 Aug 18 14:25 pdo_oci.so
-rwxr-xr-x  1 root root  111246 Aug 18 14:25 pdo_pgsql.so
-rwxr-xr-x  1 root root  270276 Aug 18 14:25 pdo.so
-rwxr-xr-x  1 root root 1370516 Aug 18 14:25 pdo_sqlite.so
-rwxr-xr-x  1 root root  235943 Aug 18 14:25 pgsql.so
-rwxr-xr-x  1 root root 1010437 Aug 18 14:25 sqlite.so
-rwxr-xr-x  1 root root  598407 Jan 29  2008 xdebug.so


I'm using RHEL 4, and have installed the sqlite-devel, but I think php
is choosing to use the sqlite that comes with it???? I'm hoping
someone on the list can point me in the right direction.

Thanks in advance,
Tim


you are loading extensions of an older PHP version. Do an ls -als on /usr/local/lib/php. you will find a directory with a higher date. That's your new extension path. Just change the location in the php.ini to reflect the new location.


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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux