现在有几次我一直在遵循this的指导,试图在我的系统上安装HHVM3.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
发布于 2015-10-19 05:29:28
可能还有其他东西提供了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,它是Ubuntu14.04。这不是一个专门针对您的Mint系统的构建。它可能会工作,但也可能不会-- Mint不是官方支持的HHVM发行版。从源代码构建几乎肯定可以工作,但二进制文件可能不兼容。
https://stackoverflow.com/questions/33197429
复制相似问题