1

Would this sequence of commands work for RHEL?

apt-get install python g++ make
mkdir ~/nodejs && cd $_
wget -N http://nodejs.org/dist/node-latest.tar.gz
tar xzvf node-latest.tar.gz && cd `ls -rd node-v*`
./configure
make install

I should install it in the future, but I have no access to RHEL machine right now...

  • node.js publishes binaries too in the same site as you linked in your script. See my answer here on one way to use them. Lots of other good information in other answers of that question which should apply to RHEL too. – explunit Apr 15 '13 at 17:40
6

RHEL is RPM based Linux and apt-get is used for Deb based Linux .Yum is the Package Updater for RPM based Linux.

However you can download the latest NOdeJS package and compile it on your RHEl6

  http://nodejs.org/download/

  tar -zxf node-v0.6.18.tar.gz #Download this from nodejs.org
  cd node-v0.6.18
  ./configure && make && sudo make install

Or, if you'd like to install from the repository

  git clone https://github.com/joyent/node.git
  cd node
  git checkout v0.6.18 #Try checking nodejs.org for what the stable version is
  ./configure && make && sudo make install
  • 2
    I tried now with 'node-v4.1.1-linux-x64' and get error .."./configure: No such file or directory". – Jay Sep 25 '15 at 15:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.