我尝试使用wamp服务器中的composer工具安装 zendframework 。
I am trying to install zendframework using composer tool in wamp server.
b $ b
The following steps are done towards installation
我从composer页面下载了Composer-Setup.exe文件并成功安装。
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
发布评论