Skip to content
kazuhisya edited this page Dec 29, 2012 · 18 revisions

How to install

Distro support

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

  • RHEL 6.3 x86_64
  • CentOS 5.8 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

# yum install rpm-build rpmdevtools openssl-devel zlib-devel redhat-rpm-config
# rpmdev-setuptree
# spectool -g -R nodejs.spec
# rpmbuild -ba nodejs.spec
# yum install ~/rpmbuild/RPMS/x86_64/nodejs-0.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.

 # rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# rpmdev-setuptree
# spectool -g -R nodejs.spec
# yum install rpm-build rpmdevtools openssl-devel zlib-devel python26
# cp node-js.centos5.configure.patch ~/rpmbuild/SOURCES/
# rpmbuild -ba nodejs.spec
# yum install ~/rpmbuild/RPMS/x86_64/nodejs-0.8.XX-1.x86_64.rpm --nogpgcheck
Clone this wiki locally