How do I install the ext-curl extension with PHP 7?

后端 未结 12 753
终归单人心
终归单人心 2020-11-29 17:37

I\'ve installed PHP 7 using this repo, but when I try to run composer install, it\'s giving this error:

  • [package] requires ext-cu
12条回答
  •  春和景丽
    2020-11-29 18:19

    I tried the above solutions but it didn't work for me, just incase there any other person in the same shoes, this is what I did. I updated apt-get with the following command

    sudo add-apt-repository ppa:ondrej/php
    

    this i installed with php curl for the version of php that i was using, mine was

    sudo apt-get install php7.1-curl
    

提交回复
热议问题