PHP5 Oracle Extenstion

Asked by sangprabv on 2009-03-16

Does anybody have php5-oracle.deb? I don't see it in the repository. Thx

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu php5 Edit question
Assignee:
No assignee Edit question
Last query:
2009-03-16
Last reply:
2009-03-16
Micah Gersten (micahg) said : #1

It doesn't seem to be in the repo. You can get it by doing the following:
sudo pecl install PDO_OCI

sangprabv (sangprabv) said : #2

I tried but it returns 'sudo: pecl: command not found'

Abi ^-^ (abiyasa-eka) said : #3

Hello, take a look at

https://help.ubuntu.com/community/PHPOracle

Thank you ^-^

Micah Gersten (micahg) said : #4

If you don't have pecl installed, it can be found in the package php-pear.

Micah Gersten (micahg) said : #5

Also, which oracle driver do you want?
Abi ^-^'s link will get you the generic oracle driver.
My instructions will give you the PDO driver if you are using PDO.

sangprabv (sangprabv) said : #6

WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
pear/PDO_OCI requires PHP extension "pdo" (version >= 1.0)
No valid packages found
install failed

sangprabv (sangprabv) said : #7

I tried Abi's solution and stopped in:
1-1, 'all', 'abort', or Enter to continue: 'instantclient,/usr/local/lib/instantclient_11_1'
It keep re asking:
1. Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client : autodetect

Micah Gersten (micahg) said : #8

sangprabv wrote:
> Question #64270 on php5 in ubuntu changed:
> https://answers.launchpad.net/ubuntu/+source/php5/+question/64270
>
> sangprabv gave more information on the question:
> I tried Abi's solution and stopped in:
> 1-1, 'all', 'abort', or Enter to continue: 'instantclient,/usr/local/lib/instantclient_11_1'
> It keep re asking:
> 1. Please provide the path to the ORACLE_HOME directory. Use 'instantclient,/path/to/instant/client/lib' if you're compiling with Oracle Instant Client : autodetect
>
>
Well, which one do you need? Are you using PDO?

Can you help with this problem?

Provide an answer of your own, or ask sangprabv for more information if necessary.

To post a message you must log in.