无法打开输入文件:composer.phar [英] Could not open input file: composer.phar

查看:2353
本文介绍了无法打开输入文件:composer.phar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用wamp服务器中的composer工具安装 zendframework

I am trying to install zendframework using composer tool in wamp server.

b
$ b

The following steps are done towards installation


  1. 我从composer页面下载了Composer-Setup.exe文件并成功安装。

  1. I downloaded the Composer-Setup.exe file from composer page and got successfully installed.

我下载了 zendframework ,并在 c:\wamp\www\zend 文件夹

我执行了自更新命令

php composer.phar self-update

php composer.phar self-update

此行会产生错误讯息:无法开启档案作曲.phar

This line generates the error message: could not open file composer.phar

如何解决此错误

如果我尝试

composer.phar self-update

推荐答案

composer.phar安装不工作,但没有.phar这是工作

The composer.phar install is notworking but without .phar this is working

在安装zendframe工作之前在php中启用openssl模块

We need to enable the openssl module in php before installing the zendframe work

我们必须取消注释行的; extension = php_openssl.dll .ini文件。

We have to un-comment the line ;extension=php_openssl.dll from php.ini file.

作者使用不同的php.ini文件,位于wamp\bin\php\php -\php.ini

composer use different php.ini file which is located at the wamp\bin\php\php-\php.ini

启用openssl后,我们需要重新启动服务器

After enabling the openssl we need to restart the server

执行以下注释

我可以使用这些命令成功安装 -

I can install successfully using these commands -

composer self-update
composer install --prefer-dist

这篇关于无法打开输入文件:composer.phar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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