2015-10-18 127 views
1

的几次现在我一直在下面this指导想我的制度,这是上安装HHVM 3.9如下:安装HHVM具体发布

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的第i行想:

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

回答

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官方支持的发行版。从源代码构建几乎肯定会起作用,但二进制文件可能不兼容。