简体   繁体   English

云9:PHP7 cURL无法正常工作

[英]Cloud 9: PHP7 cURL not working

Not sure why this isn't working in c9... but 不知道为什么这在c9中不起作用...但是

在此处输入图片说明

It's really strange because i have installed php5-curl, but i do have php7.0.9, is there a php7-curl? 真的很奇怪,因为我已经安装了php5-curl,但是我确实有php7.0.9,是否有php7-curl?

I have tried apt-get php-curl, php7-curl, php7.0-curl.... and none of them work. 我试过apt-get php-curl,php7-curl,php7.0-curl ....,但都没有用。 All I get is: 我得到的是:

E: Unable to locate package php70-curl for all of them. E:无法找到所有软件包php70-curl。

I also updated apt-get..... 我还更新了apt-get .....

SO am i missing something? 那我想念什么吗?

PHP 5 extensions do not work with PHP 7. As far as I know, if you compile PHP 7 with --with-curl in the configure command, it will just compile it in. PHP 5扩展不适用于PHP7。据我所知,如果在configure命令中使用--with-curl编译PHP 7,它将直接将其编译。

Are you running Ubuntu? 您在运行Ubuntu吗? If you are, then are you running 16.04 or newer? 如果是,那么您正在运行16.04或更高版本吗? In 16.04, there's a package called php7.0-curl in the Ubuntu repositories. 在16.04中,Ubuntu存储库中有一个名为php7.0-curl的软件包。 http://packages.ubuntu.com/xenial/php7.0-curl http://packages.ubuntu.com/xenial/php7.0-curl

If you are on Ubuntu and on a release earlier than 16.04, I would suggest upgrading. 如果您使用的是Ubuntu,并且版本早于16.04,则建议升级。 If you are not on Ubuntu, then which distribution are you on? 如果您不在Ubuntu上,那么您在哪个发行版上?

EDIT: After creating an account on Cloud9, I found that the PHP template is running Ubuntu 14.04 with PHP 5.5. 编辑:在Cloud9上创建帐户后,我发现PHP模板正在使用PHP 5.5运行Ubuntu 14.04。 Did you change this? 你改变了吗?

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

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