安装php5-dev Ubuntu 16.04

Hus*_*123 3 php ubuntu thread-safety ubuntu-16.04

我正在按照本教程在php 5.6中启用线程安全性. https://blog.bensoer.com/compile-thread-safe-php-5-6-20-from-source/ 但是当我执行时sudo apt-get install -y php5-dev它给了我以下输出.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package php5-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'php5-dev' has no installation candidate
Run Code Online (Sandbox Code Playgroud)

如何在Ubuntu 16.04中解决这个问题?

Hus*_*123 9

sudo apt-get install -y php5.6-dev 做了伎俩

  • 截至 2020 年,“无法找到软件包 php5.6-dev” (3认同)