Skip to content

Instantly share code, notes, and snippets.

@hnakamur
Created June 13, 2015 14:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hnakamur/13808187bf59e47456c3 to your computer and use it in GitHub Desktop.
Save hnakamur/13808187bf59e47456c3 to your computer and use it in GitHub Desktop.
get and build node9
#!/bin/sh
set -e
basedir=`pwd`
mkdir -p "$basedir/github.com/jvburnes"
git clone https://github.com/jvburnes/node9 "$basedir/github.com/jvburnes/node9"
mkdir -p "$basedir/github.com/stevedonovan"
git clone https://github.com/stevedonovan/Penlight "$basedir/github.com/stevedonovan/Penlight"
cd "$basedir/github.com/jvburnes/node9/libuv"
./autogen.sh
./configure
make
cd "$basedir/github.com/jvburnes/node9"
for f in src/libnode9.make src/node9.make src/styx/libs/lib9/Makefile src/styx/libs/libbio/Makefile src/styx/libs/libsec/port/Makefile src/styx/utils/Makefile; do
sed -i '' -e "s|/Users/jburnes/dev/node9|$basedir/github.com/jvburnes/node9|" $f
done
make
ln -s "$basedir/github.com/stevedonovan/Penlight/lua/pl" pl
@hnakamur
Copy link
Author

Prerequisite

  • Xcode
  • Xcode command line tools
  • autoconf
  • automake

Usage

build

mkdir ~/node9 # Your favorite work directory
cd !$
curl -O https://gist.githubusercontent.com/hnakamur/13808187bf59e47456c3/raw/0b23e59c15e0f7329db43ca669e88e7345f80276/build_node9.sh
sh build_node9.sh

run an example session

cd github.com/jvburnes/node9
./run.sh

Now follow the 'Example Session ' at https://github.com/jvburnes/node9/blob/master/doc/node9-hackers-guide.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment