Skip to content

Instantly share code, notes, and snippets.

@rmoriz
Created January 13, 2012 20:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rmoriz/1608607 to your computer and use it in GitHub Desktop.
Save rmoriz/1608607 to your computer and use it in GitHub Desktop.
Build node.js on a Ubuntu/Linaro ARMv7l system
apt-get install pkg-config
cd node
#
# REMARK:
#
# node's *configure* script (python) uses the output of 'uname -p' to select the current CPU architecture.
# This usually is "armv7l" on modern armv7 based systems like PandaBoard or BeagleBone, therefore you have to
# patch the configure file:
#
# return {
# 'arm': 'arm',
# 'armv7l': 'arm', # <= add this
# 'x86': 'ia32',
# 'i386': 'ia32',
# 'x86_64': 'x64',
# }.get(arch, 'ia32')
#
GYP_DEFINES="armv7=1,arm_neon=1" ./configure --prefix=/opt/node --openssl-use-sys=OPENSSL_USE_SYS
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment