Composer installed, but get /usr/bin/env: php: No such file or directory

前端 未结 4 1283
野趣味
野趣味 2021-01-31 18:54

On CentOS 7, I installed PHP 7.1.

Then I installed composer with:

cd /tmp
curl -sS https://getcomposer.org/installer | php71     --> used php71 inste         


        
4条回答
  •  梦谈多话
    2021-01-31 19:55

    As @alexhowansky suggested, I ran the following command:

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

    Now the composer command works. Thanks

提交回复
热议问题