使用未定义的常量CURLOPT_CONNECTTIMEOUT-假定为“ CURLOPT_CONNECTTIMEOUT”(这将在以后的PHP版本中引发错误)

时间:2018-12-17 07:33:46

标签: php laravel-5.5

我运行php artisan route:list,但收到此错误

在AbstractGateway.php第338行:

Use of undefined constant CURLOPT_CONNECTTIMEOUT - assumed 'CURLOPT_CONNECTTIMEOUT' (this will throw an Error in a future version of PHP)

这是什么意思?

我使用的是在ubuntu18.04和php7.3上的WSL上运行的laravel5.5

也尝试过

sudo apt-get install php7.3-curl

但是得到了这个

Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 php7.2-curl : Depends: php7.2-common (= 7.2.10-0ubuntu0.18.04.1) but 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 is to be installed
E: Unable to correct problems, you have held broken packages.

那我在堆放,你知道如何解决这个问题吗?

0 个答案:

没有答案