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 /local-install 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

Prerequisites

Ensure your system can compile programs with OpenSSL. Otherwise your Ruby will not have OpenSSL support and cannot talk over HTTPS to install packages. This is not required for the bootstrapping Ruby.

You can check which options are enabled by checking the output of make install in the steps below.

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