0

当我尝试使用安装时出现以下错误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.

有没有办法让它fastcgi工作HHVM

4

2 回答 2

2

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

成功安装后,它将提供一些命令的简短说明,然后将配置您的 Web 服务器(Nginx 或 Apache)以使用 HHVM,或者您可以遵循几乎任何php-fpm安装说明,只需替换php-fpmhhvm.

如果您没有获得简介(因为您已经在运行最新版本),您可以在此处查看

于 2014-04-14T10:40:42.223 回答
1

根据官方文档,我们将安装 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

额外的:

这个页面有一个关于 HHVM 预装的 vagrant box 的评论。

如果你有兴趣:HHVM-Vagrant

于 2014-04-14T07:20:39.070 回答