To install vendors for Symfony 2.1.0 I'm running php composer.phar install but it gives error during Generating autoload files.

要为Symfony 2.1.0安装供应商,我正在运行php composer。phar安装,但在生成自动加载文件时出错。

Error is:

错误:

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in on line 26

警告:输入中的意外字符:'\' (ASCII=92)状态=1在第26行。

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap handling the post-install-cmd event terminated with an exception

Script Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::构建引导程序,处理安装后的cmd事件

It works fine on localhost, but not on server. Not sure what the problem is with the php set up?

它在本地主机上可以正常工作,但在服务器上不行。不确定php设置的问题是什么?

EDIT:

编辑:

PHP is 5.3.13. I checked that beforehand.

PHP是5.3.13。我预先检查。

I ran app/check.php and everything is OK, except warning for accelerator.

我跑app /检查。除了对加速器的警告之外,php和一切都可以。

I could successfully install composer as well.

我也可以成功安装composer。

The composer.json has the same values as the 2.1 symfony-standard branch:

作曲家。json具有与2.1 symfony-standard branch相同的值:

"extra": {
    "symfony-app-dir": "app",
    "symfony-web-dir": "web"
}

1 个解决方案

#1


0

The host seems to use php5.2 by standard. sigh.

主机似乎按照标准使用php5.2。叹息。

I made an alias in the .bash_profile to the php53 executable previously.

我在.bash_profile中给php53的可执行文件做了一个别名。

This did not get return with ScriptHandler::getPhp as it returned the default executable (5.2). I didn't pick it up as I'm used to the T_FUNCTION error being namespacing not recognised.

当它返回默认可执行文件(5.2)时,并没有返回ScriptHandler::getPhp。我没有把它拿出来,因为我已经习惯了T_FUNCTION错误,而不是识别名称空间。

I could change my .bash_profile to use PATH instead of alias.

我可以将.bash_profile更改为使用PATH而不是别名。

Seems resolved.

似乎解决了。

更多相关文章

  1. 我无法定义我的错误
  2. php中的错误级别
  3. fgetcsv()错误地将双引号添加到第一行的第一个元素
  4. CakePHP错误:在Acl中找不到类'String'
  5. 如何捕获错误,如无法打开流和连接超时
  6. 错误1452:无法添加或更新子行:外键约束失败
  7. Oracle相当于MySQL代码“插入虚拟”以返回错误消息
  8. MySQL添加外键错误1215
  9. 在SQL中声明@变量返回错误

随机推荐

  1. Android解析XML三种方式(PULL、SAX、DOM)
  2. Android 系统UI设计规则
  3. 【读书笔记-《Android游戏编程之从零开始
  4. Android】Android apk默认安装位置设置
  5. Android之抽屉效果(自定义、GridView、Sli
  6. android:gravity 和 android:layout_Grav
  7. Android 系统架构
  8. Android 开源库与开源项目
  9. android调用系统自带资源的两种方式
  10. Android TextView文本的省略与显示