Skip to content

Instantly share code, notes, and snippets.

@Munter
Created July 12, 2011 22:28
Show Gist options
  • Save Munter/1079141 to your computer and use it in GitHub Desktop.
Save Munter/1079141 to your computer and use it in GitHub Desktop.
Assetgraph bootstrap
#!/bin/sh
# Install dependencies
sudo apt-get install git libssl-dev libcairo2-dev libgif-dev libjpeg8-dev optipng pngcrush pngquant
# Install Node.js v0.4
git clone git://github.com/joyent/node
cd node
git checkout v0.4
make distclean # Only necessary if you've compiled from the same checkout before
mkdir ~/.local # If it doesn't already exist
./configure --prefix=~/.local
make
make install
# Install NPM
curl http://npmjs.org/install.sh | sh
# Set up path for locally installed node modules
export PATH=~/.local/bin:${PATH}
# Optionally
# echo "export PATH=~/.local/bin:$PATH" >> ~/.bashrc
# Install assetgraph-builder
npm install -g assetgraph-builder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment