无法为ubuntu 16.04安装php-5 phalcon

时间:2017-09-15 08:30:12

标签: php ubuntu-16.04 phalcon

我的机器在ubuntu 16.04上运行,我安装了php 5.6,但是当我尝试运行安装php5-phalcon时,它返回错误,找不到包。

以下是我跑的命令

sudo apt-get install php5-phalcon

返回以下输出

Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package php5-phalcon

2 个答案:

答案 0 :(得分:0)

您需要先添加正确的存储库...

curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | sudo bash

sudo apt-get install php5-phalcon

# Ubuntu 16.04+, Debian 9+
sudo apt-get install php7.0-phalcon

(来自https://phalconphp.com/en/download/linux

答案 1 :(得分:0)

尝试了几种方法后,发现php5.6-phalcon不适用于ubuntu 16.04,以下是安装php7.0-phalcon的步骤:

curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | sudo bash

# Ubuntu 16.04+, Debian 9+
sudo apt-get install php7.0-phalcon