Last active
August 29, 2015 14:12
-
-
Save vpilot/7262eaf6270c814d36e4 to your computer and use it in GitHub Desktop.
Enable PEAR and PECL on Yosemite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// By default PEAR is not installed on Yosemite, but it comes with installation phar file | |
$ cd /usr/lib/php | |
$ sudo php install-pear-nozlib.phar | |
// If you don't have php.ini file use default one provided | |
$ sudo cp /etc/php.ini.default /etc/php.ini | |
// edit php.ini with your editor of choice and add two following lines | |
// make sure to douple check your extension path, it maybe different | |
include_path = ".:/usr/lib/php/pear" | |
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20121212" | |
// update channels | |
sudo pear channel-update pear.php.net | |
sudo pecl channel-update pecl.php.net | |
sudo pear upgrade-all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment