安装php5-dev Ubuntu 16.04

时间:2016-11-04 04:32:48

标签: 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

如何在Ubuntu 16.04中解决此问题?

1 个答案:

答案 0 :(得分:9)

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