User Tools

Site Tools


Sidebar


guides:install:pear_on_mac_osx_leopard_xampp

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

Update PEAR

sudo su
cd /Applications/xampp/xamppfiles/lib/php/pear
/Applications/XAMPP/xamppfiles/bin/php pearcmd.php channel-update pear.php.net
/Applications/XAMPP/xamppfiles/bin/php pearcmd.php install PEAR
/Applications/XAMPP/xamppfiles/bin/php pearcmd.php install Log
/Applications/XAMPP/xamppfiles/bin/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/pear"

To install a package

 sudo su
 cd /Applications/XAMPP/xamppfiles/lib/php/pear
 /Applications/XAMPP/xamppfiles/bin/pear install pear/PACKAGE_NAME
guides/install/pear_on_mac_osx_leopard_xampp.txt · Last modified: 2016/04/16 16:12 by michaelc