PHP5 Oracle Extenstion

Asked by sangprabv

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:
Last reply:
Revision history for this message
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

Revision history for this message
sangprabv (sangprabv) said :
#2

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

Revision history for this message
Abi ^-^ (abiyasa-eka) said :
#3

Hello, take a look at

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

Thank you ^-^

Revision history for this message
Micah Gersten (micahg) said :
#4

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

Revision history for this message
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.

Revision history for this message
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

Revision history for this message
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

Revision history for this message
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.