Composer install error - requires ext_curl when it's actually enabled

前端 未结 15 1005
遇见更好的自我
遇见更好的自我 2020-12-04 07:50

I\'m trying to install Facebook PHP SDK with Composer. This is what I get

$ composer install
Loading composer repositories with package information
Installin         


        
15条回答
  •  死守一世寂寞
    2020-12-04 08:41

    This is caused because you don't have a library php5-curl installed in your system,

    On Ubuntu its just simple run the line code below, in your case on Xamp take a look in Xamp documentation

    sudo apt-get install php5-curl
    

    For anyone who uses php7.0

    sudo apt-get install php7.0-curl
    

    For those who uses php7.1

    sudo apt-get install php7.1-curl
    

    For those who use php7.2

    sudo apt-get install php7.2-curl
    

    For those who use php7.3

    sudo apt-get install php7.3-curl
    

    Or simply run below command to install by your version:

    sudo apt-get install php-curl
    

提交回复
热议问题