php composer.phar更新不适用于Symfony安装 [英] php composer.phar update does not work with Symfony install

查看:82
本文介绍了php composer.phar更新不适用于Symfony安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Windows 7 64位系统上运行WAMP。
PATH 变量设置为 c:\wamp\bin\php\php5.3.13\

I'm running WAMP on Windows 7 64 Bits. The PATH variable is set to c:\wamp\bin\php\php5.3.13\

 

我正在尝试安装Symfony,但我不明白为什么先行运行而不是第二行:

I'm trying to install Symfony and I do not understand why first line runs and not the second:

运行成功:

php c:\wamp\bin\php\php5.3.13\composer.phar update

 

此行失败:

 
This line fails:

php composer.phar update

有错误:


无法打开输入文件:composer.phar

"Could not open input file: composer.phar"

什么可以解释这个吗?

 

get_include_path 返回:`

 
get_include_path returns : `


.; C:wamp\bin\php\php5.3.13\php\PEAR`。

.;C:\wamp\bin\php\php5.3.13\php\PEAR`.


这是否意味着如果composer.phar不在PEAR目录中,则 php composer.phar update将不起作用?


Does this mean that if composer.phar is not in PEAR directory 'php composer.phar update' will not work?

推荐答案

您应该尝试此安装ead:

You should try this instead:


composer.phar更新

composer.phar update

为什么PHP会意识到您的$ PATH变量?

Why would php be aware of your $PATH variable?

另外,我认为$ PATH仅在处理命令行的第一个单词时由您的Shell使用。

Plus, I think $PATH is only used by your shell when dealing with the first word of your command line.

这篇关于php composer.phar更新不适用于Symfony安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆