Symfony CreateProccess错误 [英] Symfony CreateProccess Error
问题描述
我今天开始使用Symfony,我想使用CLI.所以我已经安装了PHPstorm.遵循所有说明.添加了最新的php 5.4
I started using Symfony today and I wanted to use the CLI. So I have installed PHPstorm. Followed all instructions. Added an up to date php 5.4
现在,当我尝试运行时:
Now when I try to run:
> $ php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
无法运行程序"$"(在目录"E:\ wamp \ www \ Symfony"中):CreateProcess error = 2,系统找不到指定的地图
Cannot run program "$" (in directory "E:\wamp\www\Symfony"): CreateProcess error=2, The system cannot find the specified map
关于如何解决此问题的任何想法?
Any ideas on how to fix this?
修改
> php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
Cannot run program "php" (in directory "E:\wamp\www\Symfony"): CreateProcess error=2, Het systeem kan het opgegeven bestand niet vinden
> php.exe app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
Cannot run program "php.exe" (in directory "E:\wamp\www\Symfony"): CreateProcess error=2, Het systeem kan het opgegeven bestand niet vinden
我尝试了答案,但似乎没有任何改变!这是一件大事吗?
I tried the answers, but it doesn't seem to change anything! Is this a bigger thing?
编辑2个已解决的问题
> c:\full\path\to\your\php.exe app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
那件东西救了我一命,谢谢!
That piece saved my life, thanks!
推荐答案
> php app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
因为那里$通常表示您的终端邀请.然后,您尝试使用其余字符串作为参数来运行命令"$".
As there $ normally means your terminal invitation. And you try to run command '$' with the rest of string being parameters.
> c:\full\path\to\your\php.exe app/console generate:bundle --namespace=Acme/HelloBundle --format=yml
或将php的路径添加到%PATH%
OR add path to php to %PATH%
这篇关于Symfony CreateProccess错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!