PHP7.0-curl 与 MSSQL 工具不兼容

PHP7.0-curl 与 MSSQL 工具不兼容

我正在尝试在 Ubuntu 18.04 上安装 Moodle 并将其连接到 MSSQL 服务器。

但是当我尝试安装 php7.0-curl 扩展时,moodle 可以工作,MSSQL 工具和其他库被删除,因为它们支持,libcurl3尽管最新的php7.0-curl仅依赖于libcurl4

因此,当我尝试安装时,libcurl4它会删除 MSSQL 工具和其他包。

sudo ACCEPT_EULA=Y apt-get -y install msodbcsql mssql-tools
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libpython-stdlib python python-minimal python2.7 python2.7-minimal
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libcurl3 msodbcsql17
The following packages will be REMOVED:
  libcurl4 libcurl4-openssl-dev php7.0-curl
The following NEW packages will be installed:
  libcurl3 msodbcsql msodbcsql17 mssql-tools

有什么方法可以安装旧的php7.0-curl扩展,以便我可以让 MSSQL 工具和 Moodle 都正常运行?

非常感谢您抽出时间。

答案1

您需要安装以前版本的扩展'常见的''卷曲'对于php7.0

wget http://security.ubuntu.com/ubuntu/pool/main/p/php7.0/php7.0-common_7.0.28-0ubuntu0.16.04.1_amd64.deb

wget http://security.ubuntu.com/ubuntu/pool/main/p/php7.0/php7.0-curl_7.0.28-0ubuntu0.16.04.1_amd64.deb


sudo dpkg -i php7.0-common_7.0.28-0ubuntu0.16.04.1_amd64.deb


sudo dpkg -i php7.0-curl_7.0.28-0ubuntu0.16.04.1_amd64.deb

相关内容