-
Notifications
You must be signed in to change notification settings - Fork 3k
Building RPMs for HHVM on CentOS 6.6
Unknown edited this page Sep 6, 2015
·
5 revisions
HHVM is a modern piece of software while Centos 6.6 is ancient. The RPMs created using the instructions on this page will update the base system packages, creating a Chimera. This may break existing software running on your server. For best results, make sure that you have nothing else running on your servers other than HHVM, post installation. Also use this opportunity to plan upgrades to Centos 7/SCL 7/RHEL 7.
You Have Been Warned
- Install build pre-requisites
- Build and install library pre-requisites
- Build HHVM source RPM
- Build HHVM RPM
- Install and Enjoy
- Optional - Next steps
-
RH Devtoolset 2 or higher (
yum install devtoolset-2-toolchain
) - rpm-build (
yum install rpm-build
)
We will get the pre-requisite source packages from multiple sources including Centos 7 sources, Fedora sources, epel sources and PLD Linux sources. Rebuild using rpmbuild --rebuild $SRPM
, and install using yum localinstall $RPMS
- glog-0.3.3-1.src.rpm (or it's update )
- double-conversion-1.1.5-1.el6.lzd.src.rpm (or it's update )
- boost-1.53.0-18.el7.src.rpm
- libmemcached-1.0.16-3.el7.src.rpm
- tbb-4.1-5.20130314.el7.src.rpm
- sqlite-3.7.17-4.el7.src.rpm
- ImageMagick-6.7.8.9-10.el7.src.rpm
- ocaml-4.00.1-4.el7.src.rpm
- ocaml-findlib-1.3.3-5.el7.src.rpm
- pcre-8.21-7.fc17.src.rpm
- Get the HHVM packaging files from https://github.com/no1youknowz/hhvm-repo/
- Get the HHVM source of your choice from https://github.com/facebook/hhvm/ as a tar.gz
- Match the hhvm.spec file to the hhvm archive
- Build the SRPM using
rpmbuild -bs --rmspec --rmsource hhvm.spec
- Build the binary RPMs from the source RPM:
rpmbuild --rebuild $SRPM
yum localinstall $HHVM_RPM
- Use
mockchain
from the Fedora Mock package to build all these in a clean environment.