HHVM与FastCGI安装错误

时间:2014-04-14 07:15:44

标签: php linux ubuntu fastcgi hhvm

当我尝试使用apt-get install -y --force-yes hhvm-fastcgi进行安装时,我收到以下错误:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 hhvm-fastcgi : Depends: hhvm (>= 2.3.0)
E: Unable to correct problems, you have held broken packages.

我也做过apt-get install hhvm,但我得到了:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
hhvm is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.

有没有办法让这个fastcgiHHVM合作?

2 个答案:

答案 0 :(得分:2)

从3.0.0版本开始,不再有hhvm-fastcgi个包。相反,hhvm仅支持FastCGI。您可以找到有关如何为发行版here安装该软件包的说明。

一旦成功安装,它将在一些命令上提供简短的模糊,然后将配置您的Web服务器(Nginx或Apache)以使用HHVM,或者您几乎可以跟随任何{{1安装说明,只需将php-fpm替换为php-fpm

如果您没有获得模糊(因为您已经在运行最新版本),您可以看到它here

答案 1 :(得分:1)

  

根据official documentation,我们将安装HHVM   包括使用FastCGI启动HHVM的能力。

<强>先决条件

$ sudo apt-get update
$ sudo apt-get install -y unzip vim git-core curl wget build-essential python-software-properties

安装HHVM

$ wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
$ echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list
$ sudo apt-get update
$ sudo apt-get install -y hhvm

您也可以在安装HHVM之前尝试执行此操作:

sudo add-apt-repository -y ppa:mapnik/boost

其他:

This page对预先安装了HHVM的流浪盒有评论。

如果您有兴趣:HHVM-Vagrant