I need mssql support for pdo, but the atomic packages don't have it.
Where can I get the src rpm so I can compile it myself? I need it quite soon.
pd: I'm an ASL user, but in the ASL repo there isn't php-pdo-mssql support either.
pdo-mssql
Re: pdo-mssql
I tried installing with:
pecl install pdo_dblib
but I get a version error.
Then I read that it has a version check error, so I followed these steps:
pecl download pdo_dblib
tar -xzvf PDO_DBLIB-1.0.tgz
remove this line from package.xml:
<dep type="ext" rel="ge" version="1.0">pdo</dep>
mv package.xml ./PDO_DBLIB-1.0
cd PDO_DBLIB-1.0
PHP_PDO_SHARED=1
LDFLAGS=/usr/lib64
pecl install package.xml
phpize
./configure --with-libdir=lib64
make
make test
cp modules/pdo_dblib.so /usr/lib64/php/modules/.
then enabled pdo_dblib in php.ini, but when execuring php -i I get this error:
Fatal error: PDO: driver dblib requires PDO API version 20060409; this is PDO version 20060511 in Unknown on line 0
Fatal error: Unable to start pdo_dblib module in Unknown on line 0
So, how can I enable it? please help.
pecl install pdo_dblib
but I get a version error.
Then I read that it has a version check error, so I followed these steps:
pecl download pdo_dblib
tar -xzvf PDO_DBLIB-1.0.tgz
remove this line from package.xml:
<dep type="ext" rel="ge" version="1.0">pdo</dep>
mv package.xml ./PDO_DBLIB-1.0
cd PDO_DBLIB-1.0
PHP_PDO_SHARED=1
LDFLAGS=/usr/lib64
pecl install package.xml
phpize
./configure --with-libdir=lib64
make
make test
cp modules/pdo_dblib.so /usr/lib64/php/modules/.
then enabled pdo_dblib in php.ini, but when execuring php -i I get this error:
Fatal error: PDO: driver dblib requires PDO API version 20060409; this is PDO version 20060511 in Unknown on line 0
Fatal error: Unable to start pdo_dblib module in Unknown on line 0
So, how can I enable it? please help.
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: pdo-mssql
src rpms are available here:
http://www4.atomicorp.com/channels/source/
yum install php-mssql should do it too
http://www4.atomicorp.com/channels/source/
yum install php-mssql should do it too
Re: pdo-mssql
thanks for your reply.
That installs mssql support, but not for pdo. I need it with pdo.
I will try with the srpms.
That installs mssql support, but not for pdo. I need it with pdo.
I will try with the srpms.
Re: pdo-mssql
I just noticed that the rpm you mention includes both modules: mssql.so and pdo_dblib.so !!
thanks for your reply.
thanks for your reply.