Skip to content

Installing or Building HipHop PHP via RPM on CentOS 5

odessky edited this page Sep 13, 2010 · 12 revisions

HipHop has been developed on CentOS and Fedora, but only based on source code and some patches. You may found this way is hard.
So, I create some patched RPM’s for easy HipHop installation on CentOS 5

At the moment, RPM’s only for 64 bits systems. I work on 32bits in that moment, and you can get RPMS as soon as possible.

PreRequires

Install addition repositories from CentOS 5 64bit:
Using sudo or as root user:

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-3.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
rpm -Uvh http://centos.alt.ru/repository/centos/5/x86_64/centalt-release-5-3.noarch.rpm
rpm -Uvh http://dag.wieers.com/rpm/packages/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

Install HipHop-PHP from RPMs:

Download rpms exclude doc and devel branches
Install then all as one rpm -Uvh *.rpm

Rebuild HipHop-PHP via RPMs:

Download rpm include devel branches and install them as one rpm -Uvh *.rpm
Download srpm package hphp and rebuild it use rpm-build: rpmbuild --rebuild hphp*.srpm

Update HipHop-PHP for last release:

Install srpm package hphp, then go to /usr/src/redhat/SOURCES
Remove hphp.tar.gz
Clone new release by git
Create tar.gz archive from release
Use rpm-build for create RPM: rpmbuild -bb hphp.spec