laravel 在 ubuntu 上安装 curl 以将 hirak/prestissimo 与作曲家一起使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/43949541/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 15:57:22  来源:igfitidea点击:

install curl on ubuntu to use hirak/prestissimo with composer

phplaravelubuntucomposer-php

提问by Nguyen Hoang

I try to installhirak/prestissimo packages because my composer is very very very slow. I use

我尝试安装hirak/prestissimo 软件包,因为我的作曲家非常非常非常慢。我用

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 !!

谢谢大家!!

回答by Exprator

curl doesnt stay in php.ini

curl 不会停留在 php.ini 中

for ubuntu you need install it from terminal

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

install it like this

像这样安装

sudo apt-cache search php-curl

sudo apt-cache search php-curl

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

回答by ssi-anik

So far, it's cURL issue. You've to install cURL and enable it.
sudo apt-cache search php-curland get your version number from there. Install by typing sudo apt-get install php5.6-curl. This should work.

到目前为止,这是卷曲问题。您必须安装 cURL 并启用它。
sudo apt-cache search php-curl并从那里获取您的版本号。通过键入安装sudo apt-get install php5.6-curl。这应该有效。

回答by UWU_SANDUN

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 php5on terminal after that enter the tab..Then you can see the packages.

如果这不起作用,请检查您的依赖项是否有错误。它可以使用这个检查..首先sudo apt-get install php5在终端上输入然后输入tab..然后你可以看到包。

回答by Ivan Pirus

Try it

尝试一下

sudo apt-get install php5.6-bcmath