mirror of
https://github.com/facebook/hhvm.git
synced 2026-03-20 04:46:21 +00:00
Page:
Building and installing HHVM on Gentoo
Pages
Building and installing HHVM on OSX 10.8 With Homebrew
Building RPMs for HHVM on CentOS 6.6
Building and Installing HHVM on Cygwin
Building and Installing HHVM
Building and Installing on FreeBSD 8.2
Building and Installing on OpenBSD 6.1
Building and installing HHVM on Amazon Linux 2013.09.1
Building and installing HHVM on Amazon Linux 2014.03
Building and installing HHVM on Amazon Linux 2016.03
Building and installing HHVM on CentOS 5
Building and installing HHVM on CentOS 6.3
Building and installing HHVM on CentOS 6.4
Building and installing HHVM on CentOS 6.6
Building and installing HHVM on Debian 6
Building and installing HHVM on Debian 7
Building and installing HHVM on Debian 8
Building and installing HHVM on Fedora 19 or 20
Building and installing HHVM on Fedora 19
Building and installing HHVM on FreeBSD from ports
Building and installing HHVM on Gentoo
Building and installing HHVM on Mint 15
Building and installing HHVM on Mint 17
Building and installing HHVM on OSX 10.10 with MacPorts
Building and installing HHVM on OSX 10.10
Building and installing HHVM on OSX 10.9
Building and installing HHVM on RHEL 7
Building and installing HHVM on Ubuntu 12.04
Building and installing HHVM on Ubuntu 12.10
Building and installing HHVM on Ubuntu 13.04
Building and installing HHVM on Ubuntu 13.10
Building and installing HHVM on Ubuntu 14.04 (arm64)
Building and installing HHVM on Ubuntu 14.04
Building and installing HHVM on Ubuntu 14.10
Building and installing HHVM on Ubuntu 15.04
Building and installing HHVM on Ubuntu 15.10
Building and installing HHVM on Windows with MSVC
Building and installing hhvm on CentOS 7.x
Building and installing on Ubuntu 10.04 LTS
Building and installing on Ubuntu 10.10
Building the Hack Typechecker
DSO 3.5.0
Extension API
FAQ
FastCGI
Getting Started
HHVM Composer Plugin for Debian Based Systems
HHVM builtin Webserver
Hack Editor Plugins
Hackabook. ID#1080032452
Home
How to Report Issues
Human Timeouts
INI Settings
Libevent Removal
Long term support (LTS)
Mirror
Open Academy
Package Maintainers
Performance Tuning
Prebuilt Packages for HHVM
Prebuilt Packages on Arch Linux
Prebuilt Packages on Centos 7.x
Prebuilt Packages on Debian 7
Prebuilt Packages on Debian 8
Prebuilt Packages on Mint 15
Prebuilt Packages on Mint 16
Prebuilt Packages on Ubuntu 12.04
Prebuilt Packages on Ubuntu 13.04
Prebuilt Packages on Ubuntu 13.10
Prebuilt Ulyaoth Repository
Prebuilt packages on Ubuntu 10.04
Prebuilt packages on Ubuntu 14.04
Prebuilt packages on Ubuntu 15.04 (vivid)
Profiling
Reporting Crashes
Running HipHop VM
Running PHP programs with HHVM
Users
What is Phabricator
No results
16
Building and installing HHVM on Gentoo
Alex Guzman edited this page 2016-08-11 15:46:47 -07:00
There's a community-maintained Portage overlay containing an HHVM ebuild. Adding this overlay will let you install HHVM through Gentoo's package manager.
Update repositories and install git
If not already installed, install git.
sudo emerge --sync
sudo emerge dev-vcs/git
Download and include portage overlay
If you have layman installed, adding the overlay is fairly straightforward:
sudo layman -S
sudo layman -a hhvm
Otherwise, go ahead and create the local overlay.
sudo mkdir -p /usr/local/portage/hhvm
sudo git clone https://github.com/reanimus/hhvm-overlay.git /usr/local/portage/hhvm --depth=1
# If you have /etc/portage/repos.conf/ set up
sudo cat >>/etc/portage/repos.conf/hhvm.conf <<EOF
[hhvm]
location = /usr/local/portage/hhvm
masters = gentoo
auto-sync = no
EOF
# If you're using the old PORTDIR_OVERLAY method in make.conf
sudo cat >>/etc/portage/make.conf <<EOF
PORTDIR_OVERLAY="/usr/local/portage/hhvm \$PORTDIR_OVERLAY"
EOF
Add necessary keywords
sudo cat >>/etc/portage/package.keywords/hhvm <<EOF
dev-libs/libdwarf ~amd64
dev-php/hhvm ~amd64
EOF
If you want to use the latest version of HHVM (git master), you should add it to the unmasked package list:
sudo cat >>/etc/portage/package.unmask/hhvm <<EOF
=dev-php/hhvm-9999
EOF
Add necessary USE flags
Some of these may be unnecessary, depending on your system's USE flags/profile. These are required when using the base amd64 profile.
sudo cat >>/etc/portage/package.use/hhvm <<EOF
net-libs/c-client kerberos
dev-libs/jemalloc stats
dev-libs/boost context
sys-devel/binutils static-libs
EOF
Build and install HHVM with all dependencies
Hint: Having enough memory can prevent some errors (RAM + swap >= 8 GiB)
sudo emerge -av hhvm
Adding HHVM server to default runlevel
sudo rc-update add hhvm default
Starting HHVM server
sudo /etc/init.d/hhvm start