安装hhvm特定版本

时间:2015-10-18 11:28:42

标签: hhvm linuxmint

现在我几次按照this指导尝试在我的系统上安装hhvm 3.9,如下所示:

RELEASE=17.2
CODENAME=rafaela
EDITION="Cinnamon 64-bit"
DESCRIPTION="Linux Mint 17.2 Rafaela"
DESKTOP=Gnome
TOOLKIT=GTK
NEW_FEATURES_URL=http://www.linuxmint.com/rel_rafaela_cinnamon_whatsnew.php
RELEASE_NOTES_URL=http://www.linuxmint.com/rel_rafaela_cinnamon.php
USER_GUIDE_URL=help:linuxmint
GRUB_TITLE=Linux Mint 17.2 Cinnamon 64-bit

我通过添加我想要的特定版本替换了deb行:

sudo add-apt-repository "deb http://dl.hhvm.com/ubuntu trusty-lts-3.9 main"

然而我总是最终运行hhvm --version然后获得:

HipHop VM 3.10.0-dev (rel) Compiler: heads/master-0-ge6fe4904121181791863528eef873cd31ac8fd23 Repo schema: 8b2eab7449176279799f086c56a57f084374dc0e 任何想法我能做错什么?或者我的系统中隐藏了什么导致了这个?

这是尝试安装3.6版本的日志(我想试一试):

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libboost-context1.54.0 libboost-filesystem1.54.0
  libboost-program-options1.54.0 libboost-regex1.54.0 libboost-thread1.54.0
The following NEW packages will be installed:
  hhvm libboost-context1.54.0 libboost-filesystem1.54.0
  libboost-program-options1.54.0 libboost-regex1.54.0 libboost-thread1.54.0
0 upgraded, 6 newly installed, 0 to remove and 19 not upgraded.
Need to get 16.0 MB/16.4 MB of archives.
After this operation, 2,057 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://dl.hhvm.com/ubuntu/ trusty-lts-3.6/main hhvm amd64 3.6.6~trusty [16.0 MB]
Fetched 16.0 MB in 47s (336 kB/s)                                              
Selecting previously unselected package libboost-context1.54.0:amd64.
(Reading database ... 193638 files and directories currently installed.)
Preparing to unpack .../libboost-context1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-context1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-filesystem1.54.0:amd64.
Preparing to unpack .../libboost-filesystem1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-filesystem1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-program-options1.54.0:amd64.
Preparing to unpack .../libboost-program-options1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-regex1.54.0:amd64.
Preparing to unpack .../libboost-regex1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-regex1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package libboost-thread1.54.0:amd64.
Preparing to unpack .../libboost-thread1.54.0_1.54.0-4ubuntu3.1_amd64.deb ...
Unpacking libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Selecting previously unselected package hhvm.
Preparing to unpack .../hhvm_3.6.6~trusty_amd64.deb ...
Unpacking hhvm (3.6.6~trusty) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up libboost-context1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-filesystem1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-program-options1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-regex1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up libboost-thread1.54.0:amd64 (1.54.0-4ubuntu3.1) ...
Setting up hhvm (3.6.6~trusty) ...
********************************************************************
* HHVM is installed.
*
* Running PHP web scripts with HHVM is done by having your
* webserver talk to HHVM over FastCGI. Install nginx or Apache,
* and then:
* $ sudo /usr/share/hhvm/install_fastcgi.sh
* $ sudo /etc/init.d/hhvm restart
* (if using nginx)  $ sudo /etc/init.d/nginx restart
* (if using apache) $ sudo /etc/init.d/apache restart
*
* Detailed FastCGI directions are online at:
* https://github.com/facebook/hhvm/wiki/FastCGI
*
* If you're using HHVM to run web scripts, you probably want it
* to start at boot:
* $ sudo update-rc.d hhvm defaults
*
* Running command-line scripts with HHVM requires no special setup:
* $ hhvm whatever.php
*
* You can use HHVM for /usr/bin/php even if you have php-cli
* installed:
* $ sudo /usr/bin/update-alternatives \
*    --install /usr/bin/php php /usr/bin/hhvm 60
********************************************************************
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...

这个以同样的方式结束......版本3.10.0

1 个答案:

答案 0 :(得分:0)

其他可能提供的内容hhvm - 您可以which hhvm查看它的位置。通过apt-get安装的应该是/usr/bin/hhvm。您自己安装的版本可能会覆盖它。

关于您的输出的其他几个注释。首先,这是在你的输出上面:

Get:1 http://dl.hhvm.com/ubuntu/ trusty-lts-3.6/main hhvm amd64 3.6.6~trusty [16.0 MB]

与您上面发布的3.9源代码行不同。您应该审核您的apt配置 - /etc/apt/sources.list以及/etc/apt/sources.list.d/下的所有内容 - 并查看您是否有多个HHVM仓库规范。

最后,请注意您使用的是trusty,即Ubuntu 14.04。这不是专门为您的Mint系统构建的。它可能有用,但可能没有 - Mint不是官方支持的HHVM发行版。从源代码构建几乎肯定会起作用,但二进制文件可能不兼容。