Skip to content

Instantly share code, notes, and snippets.

@MylesBorins
Created October 26, 2012 19:59
Show Gist options
  • Save MylesBorins/3961104 to your computer and use it in GitHub Desktop.
Save MylesBorins/3961104 to your computer and use it in GitHub Desktop.
Install node on arm
First step...
sudo apt-get update && sudo apt-get upgrade
Go see a movie or write a novel
Follow instructions at https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
sudo apt-get install python-software-properties
Drink a beer while you wait
The below steps can be skipped, the repositories are only good for amd64 and i386
need to compile from source BLEGH
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
Don’t do these steps
sudo apt-get install nodejs
sudo apt-get install npm (need to be done separately)
only installed verion 0.1 blegh
install git
sudo apt-get install git
git clone https://github.com/joyent/node.git
git checkout v0.8.11-release
(switch to branch of most stable release... and save some time not compiling pre-release like I did the first time... 2 hours I’ll never get back)
download the patch found at https://gist.github.com/9c4d01a7d3091398a1be
you will need to download the tar to your host, extract, and scp the .patch to your node directory
cd node (cd into node directory)
patch -p1 < patsje.patch (Apply patch)
./configure
make
Now you should probably go on a spirit quest and find yourself
(Took about 2 hours)
sudo make install
Found this http://n8.io/cross-compiling-nodejs-v0.8/ (something to consider)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment