Skip to content
kazuhisya edited this page Apr 22, 2013 · 18 revisions

How to install

Distro support

Tested working (as sane as I could test for) on:

  • RHEL 6 x86_64
  • CentOS 5 x86_64
  • Fedora 17 x86_64
  • This spec is tested under el6 and el5 only. However, Fedora15 or later work. maybe.

RHEL/CentOS/SL/OL 6

$ sudo yum install rpm-build rpmdevtools openssl-devel zlib-devel redhat-rpm-config
$ rpmdev-setuptree
$ cp <git repo dir>/nodejs.spec ~/rpmbuild/SPECS/
$ cp <git repo dir>/*.patch ~/rpmbuild/SOURCES/
$ spectool -g -R ~/rpmbuild/SPECS/nodejs.spec
$ rpmbuild --clean -ba ~/rpmbuild/SPECS/nodejs.spec
$ sudo yum install ~/rpmbuild/RPMS/x86_64/nodejs-X.X.X-X.el6.x86_64.rpm --nogpgcheck

RHEL/CentOS/SL/OL 5

when you try to build on el5, must enable the EPEL repository.

$ sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
$ sudo yum install rpm-build rpmdevtools openssl-devel zlib-devel python26
$ mkdir ~/rpmbuild
$ cd ~/rpmbuild
$ rpmdev-setuptree
$ cp <git repo dir>/nodejs.spec ~/rpmbuild/SPECS/
$ cp <git repo dir>/*.patch ~/rpmbuild/SOURCES/
$ spectool -g -R ~/rpmbuild/SPECS/nodejs.spec
$ rpmbuild --clean -ba ~/rpmbuild/SPECS/nodejs.spec
$ sudo yum install ~/rpmbuild/RPMS/x86_64/nodejs-X.X.X-X.x86_64.rpm --nogpgcheck
Clone this wiki locally