Created
January 13, 2012 20:45
-
-
Save rmoriz/1608607 to your computer and use it in GitHub Desktop.
Build node.js on a Ubuntu/Linaro ARMv7l system
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
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