在ubuntu上安装curl以使用hirak / prestissimo和composer
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在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 search php-curl
sudo apt-get install php(version of php you are using)-curl
到目前为止,这是cURL问题。您必须安装cURL并启用它。
sudo apt-cache search php-curl
并从那里获取您的版本号。通过输入sudo apt-get install php5.6-curl
安装。这应该工作。
运行此命令sudo apt-get install php5-intl
在那之后运行这个sudo apt-get update && sudo apt-get upgrade
如果这不起作用,请检查您的依赖项是否有错误。它可以检查使用这个..首先在终端上输入sudo apt-get install php5
后输入tab
。然后你可以看到包裹。
试试吧
sudo apt-get install php5.6-bcmath
以上是关于在ubuntu上安装curl以使用hirak / prestissimo和composer的主要内容,如果未能解决你的问题,请参考以下文章
无法在 ubuntu 20.04 上通过 apt 安装 curl
如何在 php7.2 和 ubuntu 14 上添加 curl
在 Ubuntu Amazon EC2 上安装 PhP curl