我已经将我的 ubuntu 升级到 18.04,现在我想念我的 curl.so。
通常它会在这里 /usr/lib/php/20160501/curl.so 但它不见了。
在命令行上,我可以使用 curl,但不能在我的 php 代码中使用。
php -m | grep curl 导致
PHP警告:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/curl.so' - /usr/lib/php/20160303/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0
Run Code Online (Sandbox Code Playgroud)
一个快速的解决方法是将“a” curl.so 放在该文件夹中,但我从哪里获得 curl.so?
我试图用 apt install php-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 …
Run Code Online (Sandbox Code Playgroud)