Created
July 12, 2011 22:28
-
-
Save Munter/1079141 to your computer and use it in GitHub Desktop.
Assetgraph bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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