JERC
JERC

Reputation: 1624

CentOS php pecl PDO_DBLIB

I have tried to install PDO_DBLIB in CentOS 5.8, so I run follow command

pecl install PDO_DBLIB

and I get the follow message

pear/PDO_DBLIB requires PHP extension 'pdo' version >=1.0

But in http://php.net/manual/es/ref.pdo-dblib.php, it says that is an EXPERIMENTAL pdo, so do you know another PDO that I can use to conect with sql server in CentOS 5

Thanks to every one!

Upvotes: 5

Views: 4122

Answers (1)

Jeff Lambert
Jeff Lambert

Reputation: 24661

See this bug report on php.net. One of the comments includes steps to get around this particular problem. Basically the work around is to download the package, modifying the package.xml to remove the dependency, and then attempt to install the package locally

$ pecl download pdo_dblib
$ tar -xzvf PDO_DBLIB-*.tgz

Remove from package.xml and save:
<dep type="ext" rel="ge" version="1.0">pdo</dep>

$ mv package.xml ./PDO_DBLIB-X.X
$ cd PDO_DBLIB-X.X
$ pecl install package.xml

Or, you can just tell PECL to skip dependencies...

$ pecl install -n pdo_dblib

Upvotes: 4

Related Questions