-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Building and installing HHVM on Gentoo
Hans-Joachim Piepereit edited this page Feb 2, 2014
·
16 revisions
sudo emerge --sync
sudo emerge dev-vcs/gitsudo mkdir -p /usr/local/portage/javer
sudo git clone https://github.com/javer/gentoo-overlay.git /usr/local/portage/javer
sudo cat >>/etc/portage/make.conf <<EOF
PORTDIR_OVERLAY="/usr/local/portage/javer \$PORTDIR_OVERLAY"
EOFor
sudo wget -q -O /etc/layman/overlays/javer.xml https://raw.github.com/javer/gentoo-overlay/master/overlay.xml
sudo layman -S
sudo layman -a javersudo cat >>/etc/portage/package.keywords <<EOF
dev-libs/isl ~amd64
dev-libs/cloog ~amd64
dev-libs/libdwarf ~amd64
EOFIf 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
EOFsudo cat >>/etc/portage/package.use <<EOF
net-libs/c-client kerberos
dev-libs/jemalloc stats
EOFsudo emerge gcc
sudo gcc-config x86_64-pc-linux-gnu-4.7.0
source /etc/profileHint: Having much memory can prevent some errors (RAM + swap >= 8 GiB)
sudo emerge hhvmsudo rc-update add hhvm defaultsudo /etc/init.d/hhvm startThe hhvm run wrapper script can be found in /usr/bin/hhvm.