Skip to content
This repository has been archived by the owner. It is now read-only.

Installing php56 and php72 with --with-pdo-oci #4811

Closed
bignall opened this Issue Mar 13, 2018 · 3 comments

Comments

Projects
None yet
3 participants
@bignall
Copy link

bignall commented Mar 13, 2018

Description

PHP 5.6

I tried to brew install php56 --with-httpd --with-pdo-oci with $ORACLE_HOME set to "/usr/local/instantclient/instantclient_12_2" but I get the message

Error: Environmental variable ORACLE_HOME must be set to use --with-pdo-oci option.

I also set $ORACLE_HOME in my .bash_profile in case it uses a new environment but that didn't help. How can I get it to be able to build with pdo-oci?

PHP 7.2

I also tried to brew install php72 --with-httpd --with-pdo-oci and ran into the issue with no options though I built it last week apparently before the update with --with-httpd and it worked fine. Is pdo-oci also built by default?

Context and Logs

Parameter Value
macOS version: 10.3.3
Homebrew version: 1.5.10
PHP version in use: 5.6 & 7.2
Oracle instant client: 12.2
@SMillerDev

This comment has been minimized.

Copy link
Member

SMillerDev commented Mar 13, 2018

Are you sure you have ORACLE_HOME set so that brew can access it? As an environment variable? What happens when you do echo $ORACLE_HOME?

As for php@7.2 httpd is indeed included by default but pdo-oci is not. You can still install it through pecl/pear though which is included now.

@bignall

This comment has been minimized.

Copy link
Author

bignall commented Mar 13, 2018

Thanks for the reply. Here's what I get from echo $ORACLE_HOME

$ echo $ORACLE_HOME

/usr/local/instantclient/instantclient_12_2
@MikeMcQuaid

This comment has been minimized.

Copy link
Member

MikeMcQuaid commented Mar 28, 2018

As announced on the 19th of January this tap will be archived by 31st March 2018. Various PHP formulae have been migrated to Homebrew/homebrew-core.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.