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

编程入门 行业动态 更新时间:2024-10-24 04:29:53
本文介绍了无法打开输入文件: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

  • 我从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

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

    发布评论

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

    >www.elefans.com

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