Hi Stephen,

On Tue, Feb 10, 2009 at 11:02 PM, Stephen at Sacramento
<[email protected]> wrote:
> $ symfony -V
> -bash: symfony: command not found

This happens because no symlink to the symfony binary has been placed
in the /usr/bin directory. Thus the bash does not know where to find
it. There are two possible solutions:

1. Always use "php" to execute symfony commands. When initiating a
project, use the full path to the symfony binary (usually
/usr/share/php/symfony/data/bin/symfony).

$ php /usr/share/php/symfony/data/bin/symfony generate:project ...

As soon as the project has been created, you can just write "php symfony".

$ php symfony generate:app ....

The advantage of this solution is that you can use multiple versions
of symfony in multiple projects.


2. Create a symlink to symfony in the /usr/bin directory.

# ln -s /usr/share/php/symfony/data/bin/symfony /usr/bin/symfony

Then you can just write "symfony ..." to execute a command.

$ symfony generate:project ...

The disadvantage here is that you need different symlinks with
different names for different symfony versions (e.g. "symfony11",
"symfony12" etc.)


Bernhard

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to