Skip to content

Prebuilt Packages on Centos 7.x

Paul Moss edited this page Mar 24, 2015 · 20 revisions

These are unofficial community-provided packages not supported by the HHVM team; for instructions on building from source, see https://github.com/facebook/hhvm/wiki/Building-and-installing-hhvm-on-CentOS-7.x

HELP

Open up an issue over at https://github.com/no1youknowz/hhvm-repo.

Current Release

The current release of hhvm is 3.6.0 and all extensions have been compiled against that.

Install EPEL REPO

sudo rpm -Uvh http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

Install HHVM REPO

sudo wget https://copr.fedoraproject.org/coprs/no1youknowz/hhvm-repo/repo/epel-7/no1youknowz-hhvm-repo-epel-7.repo -O /etc/yum.repos.d/no1youknowz-hhvm-repo-epel-7.repo

Now, Install HHVM

sudo yum install hhvm

Optional

If you want to build extensions, the devel package is available too.

sudo yum install hhvm-devel

Extensions

Here are the 3rd party extensions that are available for hhvm. All dependencies for extensions are in the hhvm repo.

sudo yum install hhvm-ext-dbase
sudo yum install hhvm-ext-geoip
sudo yum install hhvm-ext-mongofill (coming-soon)
sudo yum install hhvm-ext-msgpack
sudo yum install hhvm-ext-pgsql
sudo yum install hhvm-ext-shape
sudo yum install hhvm-ext-ssdeep
sudo yum install hhvm-ext-uuid
sudo yum install hhvm-ext-uv (coming-soon)
sudo yum install hhvm-ext-zeromq (kinda works - you're on your own)

Enabling Extensions

Add these lines per extension.

hhvm.dynamic_extensions[dbase] = dbase.so
hhvm.dynamic_extensions[geoip] = geoip.so
hhvm.dynamic_extensions[mongo] = mongo.so
hhvm.dynamic_extensions[msgpack] = msgpack.so
hhvm.dynamic_extensions[pgsql] = pgsql.so
hhvm.dynamic_extensions[shp] = shp.so
hhvm.dynamic_extensions[ssdeep] = ssdeep.so
hhvm.dynamic_extensions[uuid] = uuid.so
hhvm.dynamic_extensions[uv] = uv.so
hhvm.dynamic_extensions[zmq] = zmq.so
Clone this wiki locally