开发者

How do I add the symfony utility to my PATH variable?

I'm running the latest MAMP (i think so) on my Mac (10.5.8, PPC G4) and I added the following to my .profile - file in my home directory:

export PATH=/Applications/MAMP/htdocs/lib/vendor/symfony/data/bin:$开发者_开发技巧PATH

But my Terminal is somehow unable to find the command, and all I get is the following errors:

: command not found
: command not found
: command not found
: command not found

Any suggestions?


What do you get when you enter echo $PATH? Are you sure that .profile is being used? I've had to put my path additions in .bash_profile for them to be recognized.


what i usually does is to create a symlink to the utility or an alias.

alias symfony='/where/is/my/symfony/data/bin/symfony'

reload your terminal and the 'symfony' command should work :) else everytime you create a project with generate:project symfony creates a symfony file wich can be used as ./symfony

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜