First method is using the old source code from pear channel (pear install pdo_firebird doesn't work )
sudo apt-get install php5-dev firebird2-dev php-pear
sudo pecl install pdo
wget http://pecl.php.net/get/PDO_FIREBIRD-0.2.tgz
tar -zxvf PDO_FIREBIRD-0.2.tgz
cd PDO_FIREBIRD-0.2
phpize
./configure
sudo ln -s /usr/lib/libfbclient.so.2.1.1 /usr/lib/libgds.so
make
sudo make install
check to have in php.ini to have the next lines
also with phpinfo() function
# configuration for php PDO module
extension=pdo.so
extension=pdo_firebird.so
~
~
~
second method is to use the official php5 source from ubuntu and build only the pdo firebird extension and install it
sudo apt-get install php5-dev firebird2-dev php-pear devscripts debget
sudo pecl install pdo
you need to build the pdo extension from php from ubuntu source code
here is the source for php package
http://packages.ubuntu.com/hardy/php5
you need to install dget
dget http://archive.ubuntu.com/ubuntu/pool/main/p/php5/php5_5.2.4-2ubuntu5.5.dsc
cd php5-5.2.6.dfsg.1
cd ext
cd pdo_firebird
phpize
./configure
sudo ln -s /usr/lib/libfbclient.so.2.1.1 /usr/lib/libgds.so
make
sudo make install
check to have in php.ini to have the next lines
also with phpinfo() function
# configuration for php PDO module
extension=pdo.so
extension=pdo_firebird.so
php -i | grep PDO
PDO
PDO support => enabled
PDO drivers => firebird
PDO_Firebird
PDO Driver for Firebird/InterBase => enabled



0 comments:
Post a Comment