Installing node.js 0.6.2 on Fedora 16

This one was a little hard. I got lots of help so I decided to post it online since it doesn’t exist on the internet yet… I wonder why….

The simple step by step instruction:

  1. sudo yum install git
  2. git clone --depth 1 git://github.com/joyent/node.git
  3. cd node
  4. git checkout v0.6.2
  5. sudo yum install openssl-devel
  6. sudo yum install gcc # you can skip this if you already have gcc
  7. sudo yum install gcc-c++ # you can skip this if you already have gcc-c++
  8. ./configure       [ thank you Ed for the heads up! ]
  9. make -j2
  10. make install
  11. export PATH=$PATH:/usr/local/bin:/usr/local #this is to add usr local to your path wher nodejs was installed
  12. sudo visudo
  13. Find Defaults secure_path=/sbin:/bin:/usr/sbin:/usr/bin
    go to the end “a” for append, type “:/usr/local/bin”, ESC, “:wq”
  14. curl http://npmjs.org/install.sh |sudo sh #installing npm a very good too to install nodejs packages
    P.S. : This step is outdated as of node.js 0.6.3 since node.js 0.6.3 comes out with npm
  15. sudo yum install mongodb #installing mongodb
  16. go to the dir where you wish to code and use npm!!

  17. npm install mongodb
  18. npm install mongoose
  19. npm install express
  20. npm install coffee-script
  21. npm install stylus
  22. npm install underscore
  23. npm list
    /home/john/someproject
    ├── coffee-script@1.1.3
    ├─┬ express@2.5.1
    │ ├─┬ connect@1.8.0
    │ │ └── formidable@1.0.7
    │ ├── mime@1.2.4
    │ ├── mkdirp@0.0.7
    │ └── qs@0.3.2
    ├── mongodb@0.9.7-0
    ├─┬ mongoose@2.3.13
    │ ├── colors@0.5.1
    │ ├── hooks@0.1.9
    │ └── mongodb@0.9.6-23
    ├─┬ stylus@0.19.3
    │ ├── cssom@0.2.0
    │ ├── growl@1.1.0
    │ └── mkdirp@0.0.7
    └── underscore@1.2.2
John Roach

John Roach

I am John Roach, a devops architect. Find more information here: https://johnroach.io/about/

Read More
Installing node.js 0.6.2 on Fedora 16
Share this