简体   繁体   English

无法为Ubuntu 16.04安装php-5 Phalcon

[英]Unable to install php-5 phalcon for ubuntu 16.04

My machine is running on ubuntu 16.04 and I have installed php 5.6, but when I am trying to run to install php5-phalcon, it returns error that package not found. 我的机器在ubuntu 16.04上运行,并且已经安装了php 5.6,但是当我尝试运行以安装php5-phalcon时,它返回未找到软件包的错误。

Following is command that I ran 以下是我运行的命令

sudo apt-get install php5-phalcon

It returns following output 返回以下输出

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

You need to add the correct repository in first... 您需要首先添加正确的存储库...

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

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

After trying few methods, found that php5.6-phalcon is not available for ubuntu 16.04, following are steps to install php7.0-phalcon : 在尝试了几种方法之后,发现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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM