$ uname -a Darwin BlueApple.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
$ unzip instantclient-basic-macos.x64-12.2.0.1.0-2.zip $ unzip instantclient-sqlplus-macos.x64-12.2.0.1.0-2.zip $ unzip instantclient-sdk-macos.x64-12.2.0.1.0-2.zip
$ sudo mv instantclient_12_2 /usr/local
vi ~/.bash_profile
# ORACLE ENV , OCI8 with PHP — 20181007 export ORACLE_HOME=/usr/local/instantclient_12_2 export OCI_INC_DIR=/usr/local/instantclient_12_2/sdk/include/ export OCI_LIB_DIR=/usr/local/instantclient_12_2 export LD_LIBRARY_PATH=/usr/local/instantclient_12_2 export DYLD_LIBRARY_PATH=/usr/local/instantclient_12_2:$DYLD_LIBRARY_PATH
$ ln -sf /usr/local/instantclient_12_2/sdk/include/*.h /usr/local/include/ $ ln -sf /usr/local/instantclient_12_2/sqlplus /usr/local/bin/ $ ln -sf /usr/local/instantclient_12_2/*.dylib /usr/local/lib/ $ ln -sf /usr/local/instantclient_12_2/*.dylib.12.1 /usr/local/lib/ $ ln -sf /usr/local/instantclient_12_2/libclntsh.dylib.12.1 /usr/local/lib/libclntsh.dylib
$ pear version PEAR Version: 1.10.6 PHP Version: 7.1.22 Zend Engine Version: 3.1.0 Running on: Darwin BlueApple.local 18.0.0 Darwin Kernel Version 18.0.0: Wed Aug 22 20:13:40 PDT 2018; root:xnu-4903.201.2~1/RELEASE_X86_64 x86_64
$ cd /usr/local $ sudo curl -O http://pear.php.net/go-pear.phar $ sudo php -d detect_unicode=0 go-pear.phar $ vi ~/.bash_profile (설치된 폴더에 PATH를 걸어준다)
$ pear upgrade pear $ pear upgrade
xcode-select --install