public

Installing nodejs, npm, and all their pals on a Rackspace Ubuntu 11.10 Server

  • Download Gist
Node.js installation on Rackspace
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
############################################################################
# Installing nodejs, npm, and all their pals on a Rackspace Ubuntu Server
############################################################################
 
# First get your tools together
apt-get update
apt-get install emacs
apt-get install git
apt-get install curl
apt-get install libssl-dev
apt-get install make
 
# Sometimes you have to get stuff so you can compile stuff
apt-get install gcc
apt-get install g++
apt-get install lib32z1-dev
apt-get install pkg-config
 
# Now install node and npm
cd /usr/local/src
curl http://nodejs.org/dist/v0.8.15/node-v0.8.15.tar.gz > nodejs
tar xvfz nodejs
cd node-v0.8.15
./configure
make
make install
 
# Get NPM and forever, install globally
npm install -g forever

I'd suggest the following changes:

use /usr/local/src instead of /usr/src

add 'make' to your list of installables.

What's the advantage of /local, out of curiosity? Also, how did you use make?

Mike's phone

On Mar 7, 2012, at 16:44, jnials
reply@reply.github.com
wrote:

I'd suggest the following changes:

use /usr/local/src instead of /usr/src

add 'make' to your list of installables.


Reply to this email directly or view it on GitHub:
https://gist.github.com/1606102

/usr/src is typically where kernel sources and stuff needed by the
system goes. /usr/local/src is where you put stuff that you build
yourself just for that box.

Make is needed to do the build. On a fresh install it doesn't get
picked up. Something else you did may have required it, but since I
was doing it on a clean box, it wasn't there.

-Jon

On Wed, Mar 7, 2012 at 5:43 PM, Mike McNeil
reply@reply.github.com
wrote:

What's the advantage of /local, out of curiosity? Also, how did you use make?

Mike's phone

On Mar 7, 2012, at 16:44, jnials
reply@reply.github.com
wrote:

I'd suggest the following changes:

use /usr/local/src instead of /usr/src

add 'make' to your list of installables.


Reply to this email directly or view it on GitHub:
https://gist.github.com/1606102


Reply to this email directly or view it on GitHub:
https://gist.github.com/1606102

-Jon

Made those changes, thanks! Sorry for the late response.

#For RackSpace - Debian Just add

apt-get install python-setuptools

And Works Well.

Regards

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.