#Command to install PECL package on Mac OS X El Capitan
$ sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
#Command to install PECL package on Mac OS X El Capitan
$ sudo php /usr/lib/php/install-pear-nozlib.phar -d /usr/local/lib/php -b /usr/local/bin
System Integrity Protection prevents write in certain system directories, as example /usr.
To disable System Integrity Protection, you must boot to Recovery OS and run the csrutil command from the Terminal.
#!/bin/bash | |
# Check PHP version | |
#php --version | |
PHP_VER=$(php -v | head -1 | awk '{ print $2 }') | |
# Mavericks (10.9) | |
#PHP_VER="5.4.17" | |
# Yosemite (10.10), El Capitan (10.11) | |
#PHP_VER="5.5.27" |
For this tutorial is based on Oracle Instant Client 11.2. Please note for correct install, we must use 64-bit version.
Download Instant Client from Oracle site(http://www.oracle.com/technetwork/topics/intel-macsoft-096467.html): - Basic 64-bit - SDK 64-bit - SqlPlus 64-bit