php – 在ubuntu上安装curl以使用hirak / prestissimo和composer

前端之家收集整理的这篇文章主要介绍了php – 在ubuntu上安装curl以使用hirak / prestissimo和composer前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我尝试installhirak / prestissimo包,因为我的作曲家非常非常慢.
我用
composer global require hirak/prestissimo

但我得到了这个错误.我在StackOverflow上找到了另一个解决方案,但我仍然无法解决这个问题.

Problem 1
    - Installation request for hirak/prestissimo ^0.3.6 -> satisfiable by hirak/prestissimo[0.3.6].
    - hirak/prestissimo 0.3.6 requires ext-curl * -> the requested PHP extension curl is missing from your system.

  To enable extensions,verify that they are enabled in your .ini files:
    - /etc/PHP/5.6/cli/PHP.ini
    - /etc/PHP/5.6/cli/conf.d/10-MysqLnd.ini
    - /etc/PHP/5.6/cli/conf.d/10-opcache.ini
    - /etc/PHP/5.6/cli/conf.d/10-pdo.ini
    - /etc/PHP/5.6/cli/conf.d/15-xml.ini
    - /etc/PHP/5.6/cli/conf.d/20-calendar.ini
    - /etc/PHP/5.6/cli/conf.d/20-ctype.ini
    - /etc/PHP/5.6/cli/conf.d/20-dom.ini
    - /etc/PHP/5.6/cli/conf.d/20-exif.ini
    - /etc/PHP/5.6/cli/conf.d/20-fileinfo.ini
    - /etc/PHP/5.6/cli/conf.d/20-ftp.ini
    - /etc/PHP/5.6/cli/conf.d/20-gd.ini
    - /etc/PHP/5.6/cli/conf.d/20-gettext.ini
    - /etc/PHP/5.6/cli/conf.d/20-iconv.ini
    - /etc/PHP/5.6/cli/conf.d/20-json.ini
    - /etc/PHP/5.6/cli/conf.d/20-mbstring.ini
    - /etc/PHP/5.6/cli/conf.d/20-mcrypt.ini
    - /etc/PHP/5.6/cli/conf.d/20-MysqL.ini
    - /etc/PHP/5.6/cli/conf.d/20-MysqLi.ini
    - /etc/PHP/5.6/cli/conf.d/20-pdo_MysqL.ini
    - /etc/PHP/5.6/cli/conf.d/20-phar.ini
    - /etc/PHP/5.6/cli/conf.d/20-posix.ini
    - /etc/PHP/5.6/cli/conf.d/20-readline.ini
    - /etc/PHP/5.6/cli/conf.d/20-shmop.ini
    - /etc/PHP/5.6/cli/conf.d/20-simplexml.ini
    - /etc/PHP/5.6/cli/conf.d/20-sockets.ini
    - /etc/PHP/5.6/cli/conf.d/20-sysvmsg.ini
    - /etc/PHP/5.6/cli/conf.d/20-sysvsem.ini
    - /etc/PHP/5.6/cli/conf.d/20-sysvshm.ini
    - /etc/PHP/5.6/cli/conf.d/20-tokenizer.ini
    - /etc/PHP/5.6/cli/conf.d/20-wddx.ini
    - /etc/PHP/5.6/cli/conf.d/20-xmlreader.ini
    - /etc/PHP/5.6/cli/conf.d/20-xmlwriter.ini
    - /etc/PHP/5.6/cli/conf.d/20-xsl.ini

谢谢大家!!

卷曲不会留在PHP.ini

对于ubuntu,你需要从终端安装它

像这样安装它

sudo apt-cache搜索PHP-curl

sudo apt-get install PHP(version of PHP you are using)-curl
原文链接:https://www.f2er.com/php/130336.html

猜你在找的PHP相关文章