Skip to content

Installing Dependencies

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

Here are instructions for installing dependencies from source.

In the steps below, replace /local-install with your desired installation path. Use the same path throughout. Add /local-install/bin to the PATH environment variable:

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

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

Bower

npm install -g bower

Grunt

npm install -g grunt-cli

Ruby

Get source code:

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

Prerequisites

  • OpenSSL (Debian package libssl-dev) 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.

In the steps below, make install will indicate which features are enabled.

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;

Notes on gem

Ruby gems are packages managed by the gem command, which is installed as part of Ruby. Run the following to update your installed gems:

gem update --system
gem update
gem cleanup

Compass

gem install sass
gem install compass

Install sass first so that the released version (3.2.14) gets picked up. Otherwise, when compass gets installed, it will pick up a pre-release version of sass.

compass 0.12.2 works with sass 3.2.14.

Note: update this when upstream gets fixed. -- Kelvin (2014-02-17)

Clone this wiki locally