| Installing Symfony on Leopard with Pear [message #49045] |
Wed, 02 April 2008 20:18  |
ufasoli Messages: 24 Registered: February 2008 |
Junior Member |
|
|
Hi,
I was using an SVN installation of symfony and everything was Ok, I decided it was better to install it the "pear" way, but I can't get it to work... Here's what I did :
First of all make the MAMP php and pear the default one:
sudo mv /usr/bin/php /usr/bin/php-old
sudo ln -s /Applications/MAMP/bin/php5/bin/php /usr/bin/php
sudo mv /usr/bin/pear /usr/bin/pear-old
sudo ln -s /Applications/MAMP/bin/php5/bin/pear /usr/bin/pear
Then I set the php memory_limit to 32M
After that I proceed with the channel discovery and installation :
pear channel-discover pear.symfony-project.com
pear install symfony/symfony
I got the Ok message from pear telling me that Symfony was successfully installed. A new directory has been created in the /usr/share/PEAR directory.
The thing is whenever I type symfony in the terminal i get the "command not found" message....
I can use the "pear" or "php" command from wherever I want but not the symfony command, I've even tried adding the /usr/share/PEAR/symfony directory to the path but it doesn't work....
I'm really desperate here it's really weird!!!
My Configuration:
MAMP : 1.7.1
PHP 5.2.5
PEAR 1.6.1
here is my pear configuration
Auto-discover new Channels auto_discover <not set>
Default Channel default_channel pear.php.net
HTTP Proxy Server Address http_proxy <not set>
PEAR server [DEPRECATED] master_server pear.php.net
Default Channel Mirror preferred_mirror pear.php.net
Remote Configuration File remote_config <not set>
PEAR executables directory bin_dir /usr/share/bin
PEAR documentation directory doc_dir /usr/share/PEAR/docs
PHP extension directory ext_dir /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922
PEAR directory php_dir /usr/share/PEAR
PEAR Installer cache directory cache_dir /tmp/pear/cache
PEAR data directory data_dir /usr/share/PEAR/data
PEAR Installer download download_dir /Applications/MAMP/bin/PEAR/tmp
directory
PHP CLI/CGI binary php_bin /Applications/MAMP/bin/php5/bin/php
php.ini location php_ini /Applications/MAMP/conf/php5/php.ini
PEAR Installer temp directory temp_dir /Applications/MAMP/bin/PEAR/tmp
PEAR test directory test_dir /usr/share/PEAR/tests
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin /usr/local/bin/gpg
Signature Key Directory sig_keydir /Applications/MAMP/conf/php5/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)
User Configuration File Filename /Users/ufasoli/.pearrc
System Configuration File Filename /Applications/MAMP/conf/php5/pear.conf
any ideas??
thanks in advance
Ulises
[Updated on: Wed, 02 April 2008 20:19]
|
|
|
| Re: Installing Symfony on Leopard with Pear [message #49056 is a reply to message #49045 ] |
Thu, 03 April 2008 03:32   |
mdpane Messages: 9 Registered: March 2008 |
Junior Member |
|
|
Run this command:
ln -s /Applications/MAMP/bin/php5/bin/symfony /usr/bin/symfony
(adjust the location of the Symfony exec if need be)
That makes a symbolic link from the original Symfony to your /usr/bin/ folder. That's how I got Symfony to work in my CLI.
[Updated on: Thu, 03 April 2008 03:33]
|
|
|
|