public
Last active

Build node.js on a Ubuntu/Linaro ARMv7l system

  • Download Gist
build.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.