<i id='A1Cjw'><tr id='A1Cjw'><dt id='A1Cjw'><q id='A1Cjw'><span id='A1Cjw'><b id='A1Cjw'><form id='A1Cjw'><ins id='A1Cjw'></ins><ul id='A1Cjw'></ul><sub id='A1Cjw'></sub></form><legend id='A1Cjw'></legend><bdo id='A1Cjw'><pre id='A1Cjw'><center id='A1Cjw'></center></pre></bdo></b><th id='A1Cjw'></th></span></q></dt></tr></i><div id='A1Cjw'><tfoot id='A1Cjw'></tfoot><dl id='A1Cjw'><fieldset id='A1Cjw'></fieldset></dl></div>
        <bdo id='A1Cjw'></bdo><ul id='A1Cjw'></ul>

      1. <tfoot id='A1Cjw'></tfoot>
      2. <small id='A1Cjw'></small><noframes id='A1Cjw'>

        <legend id='A1Cjw'><style id='A1Cjw'><dir id='A1Cjw'><q id='A1Cjw'></q></dir></style></legend>

        Composer 已安装,但得到/usr/bin/env: php: No such file or directory

        Composer installed, but get /usr/bin/env: php: No such file or directory(Composer 已安装,但得到/usr/bin/env: php: No such file or directory)

        • <small id='S6BKH'></small><noframes id='S6BKH'>

              <i id='S6BKH'><tr id='S6BKH'><dt id='S6BKH'><q id='S6BKH'><span id='S6BKH'><b id='S6BKH'><form id='S6BKH'><ins id='S6BKH'></ins><ul id='S6BKH'></ul><sub id='S6BKH'></sub></form><legend id='S6BKH'></legend><bdo id='S6BKH'><pre id='S6BKH'><center id='S6BKH'></center></pre></bdo></b><th id='S6BKH'></th></span></q></dt></tr></i><div id='S6BKH'><tfoot id='S6BKH'></tfoot><dl id='S6BKH'><fieldset id='S6BKH'></fieldset></dl></div>
                <tbody id='S6BKH'></tbody>
              • <bdo id='S6BKH'></bdo><ul id='S6BKH'></ul>
              • <legend id='S6BKH'><style id='S6BKH'><dir id='S6BKH'><q id='S6BKH'></q></dir></style></legend>
                <tfoot id='S6BKH'></tfoot>
                  本文介绍了Composer 已安装,但得到/usr/bin/env: php: No such file or directory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  在 CentOS 7 上,我安装了 PHP 7.1.

                  On CentOS 7, I installed PHP 7.1.

                  然后我安装了composer:

                  Then I installed composer with:

                  cd /tmp
                  curl -sS https://getcomposer.org/installer | php71     --> used php71 instead of php, php didn't work
                  mv composer.phar /usr/local/bin/composer
                  

                  然后,当使用 composer 时,我得到:

                  Then, when using composer, I get:

                  /usr/bin/env: php: No such file or directory
                  

                  当使用 sudo composer 时,我得到:

                  When using sudo composer, I get:

                  sudo: composer: command not found
                  

                  推荐答案

                  作为 @alexhowansky 建议 在评论中,我运行了以下命令:

                  As @alexhowansky suggested in a comment, I ran the following command:

                  sudo ln -s /usr/bin/php71 /usr/bin/php
                  

                  现在 composer 命令可以工作了.

                  Now the composer command works.

                  这篇关于Composer 已安装,但得到/usr/bin/env: php: No such file or directory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Converting string to MySQL timestamp format in php(在php中将字符串转换为MySQL时间戳格式)
                  datetime to timestamp(日期时间到时间戳)
                  PHP timestamp date to user timezone(PHP时间戳日期到用户时区)
                  Converting TIMESTAMP to unix time in PHP?(在 PHP 中将 TIMESTAMP 转换为 unix 时间?)
                  Convert ISO 8601 to unixtimestamp(将 ISO 8601 转换为 unixtimestamp)
                  Finding days between 2 unix timestamps in php(在php中查找2个unix时间戳之间的天数)
                  <tfoot id='ulKSM'></tfoot>

                  <small id='ulKSM'></small><noframes id='ulKSM'>

                        <tbody id='ulKSM'></tbody>
                        <bdo id='ulKSM'></bdo><ul id='ulKSM'></ul>

                        <legend id='ulKSM'><style id='ulKSM'><dir id='ulKSM'><q id='ulKSM'></q></dir></style></legend>
                        <i id='ulKSM'><tr id='ulKSM'><dt id='ulKSM'><q id='ulKSM'><span id='ulKSM'><b id='ulKSM'><form id='ulKSM'><ins id='ulKSM'></ins><ul id='ulKSM'></ul><sub id='ulKSM'></sub></form><legend id='ulKSM'></legend><bdo id='ulKSM'><pre id='ulKSM'><center id='ulKSM'></center></pre></bdo></b><th id='ulKSM'></th></span></q></dt></tr></i><div id='ulKSM'><tfoot id='ulKSM'></tfoot><dl id='ulKSM'><fieldset id='ulKSM'></fieldset></dl></div>