Last active
August 14, 2016 07:06
-
-
Save gilson27/fe6d6f50341ea41de86bd299c968803a to your computer and use it in GitHub Desktop.
Steps to install nodejs from source
This file contains hidden or 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
| #Change the filenames | |
| NODE_TARRED="node-vx.y.z.tar.gz" | |
| NODE_DIR="node-vx.y.z" | |
| #Untar repository | |
| tar -xvpf $NODE_TARRED | |
| cd $NODE_DIR | |
| #Create a directory to install binaries | |
| mkdir install | |
| DESTDIR=$(pwd)/install | |
| #export compilation environment varibles | |
| export CC=arm-gnueabi-linux-gcc | |
| export CXX=arm-gnueabi-linux-g++ | |
| export LD=arm-gnueabi-linux-gcc | |
| export AR=arm-gnueabi-linux-ar | |
| export RANLIB=arm-gnueabi-linux-ranlib | |
| #configure compilation options and install | |
| ./configure --dest-cpu=arm --dest-os=linux --prefix=/usr --without-snapshot | |
| make | |
| make install DESTDIR=$DESTDIR |
This file contains hidden or 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
| #Change the filenames | |
| NODE_TARRED="node-vx.y.z.tar.gz" | |
| NODE_DIR="node-vx.y.z" | |
| #Untar repository | |
| tar -xvpf $NODE_TARRED | |
| cd $NODE_DIR | |
| #Configure compilation options and install | |
| ./configure | |
| make | |
| ##No sudo assuming root access | |
| make install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment