Trying to install pdo_oci via PECL fails asking for PDO extension

Posted by Igoru on Server Fault See other posts from Server Fault or by Igoru
Published on 2011-11-10T13:19:56Z Indexed on 2012/10/30 17:04 UTC
Read the original article Hit count: 593

Filed under:
|
|
|
|

I'm using Linux Mint 11 (based on Ubuntu 11.04) and I need to use PHP with Oracle through PDO, a requirement of the framework we will work with.

I've installed various PDO extensions using the normal apt-get method, like php5-mysql, etc, and they loaded just fine, along with the initial PDO extension. But there's no package for Oracle bindings.

So, when I try to run sudo pecl install pdo_oci it throws me this:

WARNING: "pear/PDO_OCI" is deprecated in favor of "channel://http://www.php.net/pdo_oci/ext/pdo_oci"
pear/PDO_OCI requires PHP extension "pdo" (version >= 1.0)
No valid packages found
install failed

How can I add this channel, or is there a better way to install the PDO_OCI extension?

© Server Fault or respective owner

Related posts about ubuntu

Related posts about php