OK, I still don't know anything about PEAR, but here's how I got it to install Symfony on Leopard and XAMPP:
1) Arrange that your userid has write access to the directories and files under /Applications/xampp/xamppfiles. You might run pear, etc., using sudo, but I don't want my userid in the "admin" group, so I can't. I leave this as an exercise.
2) Set your shell PATH to include php_bin. You'll need this later to run symfony from the shell, so you should fix your shell initialization file (such as .profile) so this will happen every time you log in.
- Code: Select all
PATH=/Applications/xampp/xamppfiles/bin/php:$PATH
3) Tell XAMPP to use php5. You need this for symfony anyway.
- Code: Select all
sudo /Applications/xampp/xamppfiles/mampp php5
4) Change ext_dir in the pear configuration to match php5
- Code: Select all
pear config-set ext_dir /Applications/xampp/xamppfiles/lib/php/php5/extensions/no-debug-non-zts-20060613/
5) Test pear by upgrading pear.
- Code: Select all
pear upgrade PEAR
6) Now, to install symfony, pear needs more memory than is allowed by default
- Code: Select all
In /Applications/xampp/etc/php.ini, change
memory_limit = 8M
to
memory_limit = 32M
7) And finally, install symfony according to the directions at
http://www.symfony-project.com/book/1_0/03-Running-Symfony- Code: Select all
pear channel-discover pear.symfony-project.com
pear install symfony/symfony