Skip to content

Installing Dependencies

Kelvin Li edited this page Feb 11, 2014 · 14 revisions

Here are instructions for installing dependencies from source.

Node.js

Get the source code:

git clone git://github.com/joyent/node

In the source tree, run:

./configure --prefix=/local-install && make && make install

Replace the argument to --prefix= with your desired installation path.

Add /local-install to the PATH environment variable:

export PATH="$PATH:/local-install"

Bower

/local-install/bin/npm install -g bower

Ruby

Get source code:

git clone git://github.com/ruby/ruby

Build a bootstrapping Ruby

Compiliing recent versions of Ruby requires an existing working Ruby installation. You may skip this section if you already have a working Ruby.

In the Ruby source tree, switch to an appropriate release:

git checkout v1_8_7_374

Note: this is the latest release I could find which does not require an existing Ruby.

Build:

autoconf && \
./configure --prefix=/local-install/ruby-bootstrap && \
make && \
make install;

Clean out source tree:

git clean -dfx

Build Ruby proper

Checkout latest release:

git checkout v2_1_0

Build:

autoconf && \
./configure \
    --with-baseruby=/local-install/ruby-bootstrap/bin/ruby \
    --prefix=/local-install && \
make && \
make install;

Compass

Clone this wiki locally