Operating System, Oracle

Oracle: Installing PHP7.2 Oracle OCI on MacOSX

Assalamualaikum,

Just a little bit of sharing on how to install PHP7.2 Oracle OCI on MacOSX. Original gist by gido, But I have update with latest PHP7.2.

Nothing much changed, except on handling some error / misconfigure (probably due to my machine got a little weird setup previously).

Anyway, here the gist for the setup.

One thought on “Oracle: Installing PHP7.2 Oracle OCI on MacOSX

  1. hai this is a very great tutorial and almost got 100% step by step, only have one mkdir error with error messages :
    Warning: mkdir(): File exists in /usr/local/Cellar/php/7.3.5/share/php/pear/System.php on line 294
    ERROR: failed to mkdir /usr/local/Cellar/php/7.3.5/pecl/20180731`
    then this is a solution :

    from : https://github.com/Homebrew/homebrew-core/issues/41081
    you should do :

    The following reporters seemed to have had similar issues.

    From #26474

    Workaround:
    mkdir -p /usr/local/lib/php/pecl # this dir didn’t exist and this caused pecl install to fail

    From #40399

    Warning: mkdir(): File exists in /usr/local/Cellar/php/7.3.5/share/php/pear/System.php on line 294
    ERROR: failed to mkdir /usr/local/Cellar/php/7.3.5/pecl/20180731`
    From https://yish.dev/xdebug-on-php73-with-homebrew/

    Workaround:
    Navigate to /usr/local/Cellar/php/7.x.x/, remove the symlink, and [run pecl again]. This creates the directory.

Leave a Reply

Your email address will not be published. Required fields are marked *

eighteen − 15 =