简体   繁体   English

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

[英]install curl on ubuntu to use hirak/prestissimo with composer

I try to installhirak/prestissimo packages because my composer is very very very slow. 我尝试installhirak / prestissimo包,因为我的作曲家非常非常慢。 I use 我用

composer global require hirak/prestissimo

But I got this error. 但我得到了这个错误。 I found another solution on StackOverflow but I still can't fix that. 我在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

Thanks you all !! 谢谢大家!!

curl doesnt stay in php.ini 卷曲不会留在php.ini

for ubuntu you need install it from terminal 对于ubuntu,你需要从终端安装它

install it like this 像这样安装它

sudo apt-cache search php-curl

 sudo apt-get install php(version of php you are using)-curl

So far, it's cURL issue. 到目前为止,这是cURL问题。 You've to install cURL and enable it. 您必须安装cURL并启用它。
sudo apt-cache search php-curl and get your version number from there. sudo apt-cache search php-curl并从那里获取你的版本号。 Install by typing sudo apt-get install php5.6-curl . 通过输入sudo apt-get install php5.6-curl This should work. 这应该工作。

Run this command sudo apt-get install php5-intl 运行此命令sudo apt-get install php5-intl

After that run this sudo apt-get update && sudo apt-get upgrade 在那之后运行这个sudo apt-get update && sudo apt-get upgrade

if this does not work please check your dependencies for the error. 如果这不起作用,请检查您的依赖项是否有错误。 It can check using this..firstly type sudo apt-get install php5 on terminal after that enter the tab ..Then you can see the packages. 它可以检查使用这个...首先在终端上键入sudo apt-get install php5进入tab ..然后你就可以看到包了。

试试吧

sudo apt-get install php5.6-bcmath

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM