Installing PEAR on OS X 10.6.8

Article published Wednesday, December 28th, 2011 at 12:00 pm

Here’s a no-frills guide to getting PEAR working on OS X. I got it working with my OS X Lion 10.6.8, but it probably works with other versions too. I started to write this in July and forgot about it and the full version of what I did is forever lost in my bash history.

  • curl http://pear.php.net/go-pear.phar > go-pear.phar
  • sudo php -q go-pear.phar
  • Change Installation base (press 1) to /usr/local
  • When prompted about automatically adding pear to your php.ini, allow it
  • restart apache

Hi, I’m Tom, and Renowned Media is my professional blog for web development tutorials. Traditionally, I’m a PHP/MySQL developer, but recently I’ve done a lot of JavaScript and Backbone.js development. Right now I’m really interested in Node.js and NoSQL technologies. I love developing on a mac and deploying apps to Linux servers.

Facebook Twitter LinkedIn Google+ 

Tags: , , ,

Category: OS X TutorialsPEAR / PECL TutorialsPHP TutorialsServer/Apache/lighttpd TutorialsUncategorized

Leave a Reply