pdo-mssql

Support/Development for PHP
miclaro
Forum User
Forum User
Posts: 23
Joined: Wed Jan 14, 2009 11:16 am

pdo-mssql

Unread post by miclaro »

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.
miclaro
Forum User
Forum User
Posts: 23
Joined: Wed Jan 14, 2009 11:16 am

Re: pdo-mssql

Unread post by miclaro »

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.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: pdo-mssql

Unread post by scott »

src rpms are available here:

http://www4.atomicorp.com/channels/source/

yum install php-mssql should do it too
miclaro
Forum User
Forum User
Posts: 23
Joined: Wed Jan 14, 2009 11:16 am

Re: pdo-mssql

Unread post by miclaro »

thanks for your reply.
That installs mssql support, but not for pdo. I need it with pdo.

I will try with the srpms.
miclaro
Forum User
Forum User
Posts: 23
Joined: Wed Jan 14, 2009 11:16 am

Re: pdo-mssql

Unread post by miclaro »

I just noticed that the rpm you mention includes both modules: mssql.so and pdo_dblib.so !!
thanks for your reply.
Post Reply