Sunday, May 6, 2012

Installing NodeJS

yum install git
Then you'll need openssl-devel to compile node.
yum install openssl-devel
Download the lastest version of node, compile it and install it.
cd /usr/local/src
wget http://nodejs.org/dist/node-v0.6.2.tar.gz
tar zxvf node-v0.6.2.tar.gz
./configure
make
make install
Install npm.
curl http://npmjs.org/install.sh | sh
Finally install coffee script. (-g means globally)
npm install -g coffee-script
 
============================
 
 
if you are getting "ImportError: No module named bz2 "
 
 
  1. install the bzip2-devel package for your distro. (In Centos it's bzip2-devel)
  2. recompile python

No comments:

Post a Comment