2016-11-04 155 views
2

我正在學習本教程以在PHP 5.6中啓用線程安全性。 https://blog.bensoer.com/compile-thread-safe-php-5-6-20-from-source/ 但是,當我正在執行sudo apt-get install -y php5-dev它給了我以下輸出。安裝php5-dev Ubuntu 16.04

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中解決此問題?

回答

5

sudo apt-get install -y php5.6-dev竅門