-
Notifications
You must be signed in to change notification settings - Fork 3k
Building and installing HHVM on Gentoo
Alex Guzman edited this page Feb 5, 2015
·
16 revisions
sudo emerge --sync
sudo emerge dev-vcs/git
sudo mkdir -p /usr/local/portage/hhvm
sudo git clone https://github.com/reanimus/hhvm-overlay.git /usr/local/portage/hhvm --depth=1
sudo cat >>/etc/portage/make.conf <<EOF
PORTDIR_OVERLAY="/usr/local/portage/hhvm \$PORTDIR_OVERLAY"
EOF
or
sudo layman -S
sudo layman -a hhvm
sudo cat >>/etc/portage/package.keywords <<EOF
dev-libs/isl ~amd64
dev-libs/cloog ~amd64
dev-libs/libdwarf ~amd64
EOF
If you want to use the latest version of HHVM (dev-master), you should add the following keyword:
sudo cat >>/etc/portage/package.keywords <<EOF
dev-php/hhvm ~amd64
EOF
sudo cat >>/etc/portage/package.use <<EOF
net-libs/c-client kerberos
dev-libs/jemalloc stats
EOF
sudo cat >>/etc/portage/package.keywords <<EOF
sys-devel/gcc:4.8 ~amd64
EOF
sudo emerge gcc:4.8
sudo gcc-config x86_64-pc-linux-gnu-4.8.0
source /etc/profile
Hint: Having enough memory can prevent some errors (RAM + swap >= 8 GiB)
sudo emerge hhvm
sudo rc-update add hhvm default
sudo /etc/init.d/hhvm start
The hhvm run wrapper script can be found in /usr/bin/hhvm
.