Installing PEAR on Mac OS X Leopard XAMPP

Installing PEAR on Mac OS X Leopard XAMPP

Installing PEAR on Mac OS X Leopard XAMPP

XAMPP for Mac does come with PEAR but it is NOT configured.

Update PEAR
sudo su – [Enter root password]
cd /Applications/xampp/xamppfiles/lib/php/pear
sudo php pearcmd.php channel-update pear.php.net
sudo php pearcmd.php install PEAR
sudo php pearcmd.php install Log

sudo php pearcmd.php list

add PEAR to the php.ini include_path
Edit /Applications/xampp/etc/php.ini (include path is at the very end of the php.ini file)

include_path = “.:/Applications/xampp/xamppfiles/lib/php:/Applications/xampp/xamppfiles/lib/php/pear”

To install a package
Type
sudo su [Enter root password]
cd /Applications/xampp/xamppfiles/lib/php/pear
pear install pear/PACKAGE_NAME

Thats it, good luck.

Share this post

Comments (8)

  • Brian Reply

    Great, Thanks!!

    July 22, 2008 at 12:04 pm
  • cat Reply

    This is the first post I have EVER made to a forum. Thank you SO much for posting these instructions, you have just ended a VERY frustrating evening for me. THANK YOU THANK YOU THANK YOU

    November 29, 2008 at 9:52 am
  • Richard C Reply

    Thanks very much – I’ve been scratching my head over this for absolutely ages! I wish the XAMPP/Pear forums were this helpful! Thanks!

    February 2, 2009 at 2:22 am
  • Chris Reply

    Hey, seems like i can’t install the packages i.e

    sh-3.2# pear install pear/HTML
    No releases available for package “pear.php.net/HTML”
    Cannot initialize ‘channel://pear.php.net/HTML’, invalid or missing package file
    Package “channel://pear.php.net/HTML” is not valid
    install failed

    Any ideas on would to do would be greatly appreciated, as i can’t yet use php and pear function calls together.

    March 23, 2009 at 6:27 pm
  • muunkky Reply

    people like you make the world go around.

    April 22, 2009 at 4:51 pm
  • Silvana Reply

    Interesting to know.

    April 22, 2009 at 4:51 pm
  • Mauricio Munera Reply

    Thank you for this post it was very useful, I will just fix this:

    To install a package I have to use this command:

    sudo su [Enter root password]
    cd /Applications/xampp/xamppfiles/lib/php/pear
    sudo php pearcmd.php install pear/<>

    thanks!!

    May 21, 2009 at 12:44 pm
  • Debt Settlement Reply

    Apologize for my bad english, I deliberate on its a gracious hell of your writing. Famously I organize faced alot of difficulties in this train but your article will definately help me in future. Say thank you You

    September 2, 2009 at 5:13 am

Leave a Reply

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


This is a demo store for testing purposes — no orders shall be fulfilled. Dismiss