Skip to content

Instantly share code, notes, and snippets.

@conoro
Forked from JerrySievert/gist:3119325
Created July 17, 2012 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save conoro/3130631 to your computer and use it in GitHub Desktop.
Save conoro/3130631 to your computer and use it in GitHub Desktop.
Working Node.js on Raspberry Pi
These instructions work for the Raspberry Pi running Raspbian (hard float), and include a working NPM:
1. Install Raspbian - http://www.raspbian.org/PiscesImages
2. sudo apt-get install git-core build-essential
3. Check out Node.js source (0.8.2)
4. Apply patch available at https://github.com/gflarity/node_pi (ignore most of the instructions)
5. Set up some variables:
$ export GYP_DEFINES="armv7=0"
$ export CXXFLAGS='-march=armv6 -mfpu=vfp -mfloat-abi=hard -DUSE_EABI_HARDFLOAT'
$ export CCFLAGS='-march=armv6 -mfpu=vfp -mfloat-abi=hard -DUSE_EABI_HARDFLOAT'
6. Configure correctly:
$ ./configure --shared-openssl --without-snapshot
$ make
$ make test
$ make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment