Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 17 lines (13 sloc) 0.416 kB
#!/bin/bash
VERSION="$1"
[[ $VERSION ]] || VERSION="2.4.10"
apt-get install -y build-essential g++ openssl libssl-dev
pushd /usr/src
[[ -f node-v$VERSION.tar.gz ]] || wget http://nodejs.org/dist/v$VERSION/node-v$VERSION.tar.gz
[[ -d node-v$VERSION ]] || tar xzf node-v$VERSION.tar.gz
pushd node-v$VERSION
./configure --openssl-libpath=/usr/lib/ssl || exit $?
make -j4 || exit $?
make install || exit $?
popd
popd
Jump to Line
Something went wrong with that request. Please try again.