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:
- sudo yum install git
git clone --depth 1 git://github.com/joyent/node.git
- cd node
- git checkout v0.6.2
- sudo yum install openssl-devel
- sudo yum install gcc # you can skip this if you already have gcc
- sudo yum install gcc-c++ # you can skip this if you already have gcc-c++
- ./configure [ thank you Ed for the heads up! ]
- make -j2
- make install
- export PATH=$PATH:/usr/local/bin:/usr/local #this is to add usr local to your path wher nodejs was installed
- sudo visudo
- Find Defaults secure_path=/sbin:/bin:/usr/sbin:/usr/bin
go to the end “a” for append, type “:/usr/local/bin”, ESC, “:wq” - curl http://npmjs.org/install.sh |sudo sh #installing npm a very good too to install nodejs packages
- sudo yum install mongodb #installing mongodb
- #go to the dir where you wish to code and use npm!!
- npm install mongodb
- npm install mongoose
- npm install express
- npm install coffee-script
- npm install stylus
- npm install underscore
- 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





Before step #8 you could add “./configure”, I’m kind of new to linux and didn’t know that.
Great step by step.
Thanks!
Thank you for the heads up Ed! Edited as could be seen
I don’t mean to be offendind, but did you heard of http://nodejs.tchol.org ?
Don’t worry I’m never offended by new information. However I would rather build my node.js packages myself than pull it from a source I don’t know.
Hey,
Nice work just make a minor change in step 2 change –depth to –depth . Kind of lame to point out but for a amatuer like me i have to resort to check the manual of the package for the same.
Oops I just noticed a doube negative when posted here is encoded as a different character .Check the same when u cutpaste and run it on a terminal.
–Cheers
Fixed it
I should have checked the auto-formatting
Thank you Anvith
Thanks a lot
you saved my life