Blog

Categories

SEARCH

About Me

Hello there, my name is Brett Popoleo and I work as a freelance web designer and web developer in Pittsburgh, Pennsylvania. Read More

What I'm Doing...

Posting tweet...

Installing PEAR on Mac OS X Leopard XAMPP

Posted in: Blog, Tutorials by Brett on July 21, 2008

1249498426_serverXAMPP 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.

Comments

10 Comments
  1. Great, Thanks!!

    Comment by Brian on July 22, 2008 at 12:04 pm |

  2. cat

    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

    Comment by cat on November 29, 2008 at 9:52 am |

  3. Richard C

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

    Comment by Richard C on February 2, 2009 at 2:22 am |

  4. Chris

    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.

    Comment by Chris on March 23, 2009 at 6:27 pm |

  5. muunkky

    people like you make the world go around.

    Comment by muunkky on April 22, 2009 at 4:51 pm |

  6. Silvana

    Interesting to know.

    Comment by Silvana on April 22, 2009 at 4:51 pm |

  7. 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!!

    Comment by Mauricio Munera on May 21, 2009 at 12:44 pm |

  8. Debt Settlement

    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

    Comment by Debt Settlement on September 2, 2009 at 5:13 am |

  9. JC

    Just letting you know that this article is still saving lives in 2012.

    Many thanks!

    Comment by JC on May 7, 2012 at 3:51 am |

  10. Bhaskar

    Thanks

    Comment by Bhaskar on June 12, 2012 at 8:12 am |