-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Building and installing HHVM on Gentoo
Alex Guzman edited this page Feb 5, 2015
·
16 revisions
sudo emerge --sync
sudo emerge dev-vcs/gitsudo 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"
EOFor
sudo layman -S
sudo layman -a hhvmsudo 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 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/profileHint: Having enough 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.