Horrell.ca

Installing node.js on a Joyent SmartMachine

Posted on May 28, 2010 at 06:33 PM in Archive, modified 18 days ago

Here’s a little tip for installing node.js (v0.2.0) on a Joyent SmartMachine (formerly called an Accelerator).

First, you’ll need to be root, so lets get that out of the way:

su -

Next, create a ~src/ directory in the home directory of root and download node.js:

mkdir src
cd src
curl -O http://nodejs.org/dist/node-v0.2.0.tar.gz

untar it:

gtar -xpf node-v0.2.0.tar.gz

Now, configure, build, and install:

cd node-v0.2.0/
./configure
gmake
gmake install

The gmake part will probably take the longest. And you’ve probably noticed I’m using gtar instead of tar and gmake instead of make. There are some difference between the Solaris versions and the GNU versions.

And that’s it!

| →