php composer.phar 更新不适用于 Symfony 安装

编程入门 行业动态 更新时间:2024-10-26 18:18:11
本文介绍了php composer.phar 更新不适用于 Symfony 安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在 Windows 7 64 位上运行 WAMP.PATH 变量设置为 c:wampinphpphp5.3.13

I'm running WAMP on Windows 7 64 Bits. The PATH variable is set to c:wampinphpphp5.3.13

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

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

运行成功:

php c:wampinphpphp5.3.13composer.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:wampinphpphp5.3.13phpPEAR`.

.;C:wampinphpphp5.3.13phpPEAR`.

这是否意味着如果 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?

推荐答案

你应该试试这个:

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 安装

本文发布于:2023-11-24 12:19:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625170.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不适用于   composer   php   Symfony   phar

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!