-
Notifications
You must be signed in to change notification settings - Fork 0
Installing or Building HipHop PHP via RPM on CentOS 5
Tag1 Consulting maintains a Yum repository and GitHub project based off of the RPMs here that will pull in necessary dependencies. It works alongside the EPEL and IUS repositories and can be installed with:
rpm -ivh http://epel.osuosl.org/5/x86_64/epel-release-5-4.noarch.rpm
rpm -ivh http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
rpm -ivh http://pkg.tag1consulting.com/hphp/x86_64/hphp-release-1.0-2.el5.noarch.rpm
These packages and their repository are sponsored by examiner.com
Run:
yum install hiphop-php -y
Alternate method to build your own RPMs follows. This isn’t required if you are using the yum repo above.
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.
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
Download rpms exclude doc and devel branches
Install then all as one rpm -Uvh *.rpm
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
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