Skip to content

Instantly share code, notes, and snippets.

@eFrane
Created April 7, 2011 12:32
Show Gist options
  • Select an option

  • Save eFrane/907667 to your computer and use it in GitHub Desktop.

Select an option

Save eFrane/907667 to your computer and use it in GitHub Desktop.
Installs V8's libraries and the developer shell on a 64-bit machine
#!/bin/sh
git clone git://github.com/v8/v8.git
cd v8
installdir='/usr/local'
if [ "$1" -ne "" ];
then
installdir=$1
fi
has_scons=`which -s scons`
if [ $? -eq 1 ];
then
easy_install scons
fi
scons mode=release library=shared arch=x64
scons mode=release library=static arch=x64
scons d8
install -m 755 d8 $installdir/bin
install -m 644 libv8.a $installdir/lib
install -m 755 libv8.dylib $installdir/lib
install -m 644 libv8preparser.a $installdir/lib
install -m 755 libv8preparser.dylib $installdir/lib
mv include/*.h $installdir/include
cd ..
rm -rf v8

To directly run:

sh < <( https://gist.github.com/raw/907667/d97626e18a7a3c47900a1a6161043c9dd57e4558/buildv8.sh )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment