Samuel Wong

Ramblings of a rocket scientist turned web developer

Compiling the Bootstrap Framework

I recently migrated unstash to the next version of Bootstrap, v.2. Version 2 hasn’t been released yet, which means the CSS file isn’t available - I had to compile it myself. To do this, I had to install a bunch of software packages. Here’s how I did it.

Install Node

I had git installed via HomeBrew from before, so I jumped right into grabbing the source for Node:

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

I wanted the latest stable version, and it was

$ git checkout v0.6.7

I created a local folder in my $HOME and copmiled Node into it:

$ mkdir ~/local
$ ./configure --prefix=$HOME/local/node
$ make
$ make install

I added Node to my $PATH and I was done:

$ vi ~/.bash_profile
$ export PATH=$HOME/local/node/bin:$PATH
$ node -v
> 0.6.7

Install NPM

This one was easy:

$ curl http://npmjs.org/install.sh | sh

Install LESS

Using NPM, I installed LESS:

$ npm install less -g

Finally, compile Bootstrap

I grabbed the Bootstrap repository:

$ git clone https://github.com/twitter/bootstrap.git

And compiled it:

$ make build

My reward?

> Bootstrap successfully built! - Sun 15 Jan 2012 17:32:20 EST

Comments