I am trying to install the PHP framework symfony (symfony-project.com).
The framework requires PHP5, here is what I have done so far…
1- create my pear config (Note: Using PHP5)
/usr/local/php5/bin/pear config-create $HOME .pearrc
2- Install PEAR in my directory (Note: using PHP5)
/usr/local/php5/bin/pear install -o PEAR
3- Set my PEAR to beta as it is the version I need to install
pear config-set preferred_state beta
4- I do a discovery on the Symfony channel
pear channel-discover pear.symfony-project.com
5- I install symfony
pear install symfony/symfony-beta
All up to here goes well
… If I do “symfony -T” I got Pake error:
PHP Warning: include(symfony/pear.php): failed to open stream: No such file or directory in /home/.goober/USERNAME/pear/data/symfony/bin/pakefile.php on line 23
Unable to find symfony librairies
so I added the following to the pake.php (Named above):
set_include_path(get_include_path() . PATH_SEPARATOR . ‘/usr/local/lib/php’. PATH_SEPARATOR .’/home/USERNAME/pear/php’);
Also edited .bash_profile as follows (added to the end to append and fix path):
ALL seams to go well after that…
If I type symfony -T from anywhere I get the expected response.
Here is the problem!!
If I type symfony-init project project_name
it gets built in $HOME/pear/data/symfony/bin/ and not in the directory I am in … any help is appreciated.