Last active
December 9, 2019 16:55
-
-
Save joyeecheung/f458f9a668e0e9546d48d899298e7331 to your computer and use it in GitHub Desktop.
Commands to build llnode on throw-away VPS with different UNIX OSs
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
# I am being lazy here by using the root perm because I am mostly testing | |
# on throw-away VPS | |
# Also, might be missing some commands, should be easy to resolve though | |
# Ubuntu | |
apt-get update | |
apt-get install lldb-4.0 git make python g++ | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
nvm install stable | |
git clone --depth=1 -b merge-gyp https://github.com/joyeecheung/llnode.git | |
cd llnode | |
npm install --unsafe-perm | |
# Debian | |
apt-get update | |
apt-get install lldb-3.9 git make python g++ | |
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
nvm install stable | |
git clone --depth=1 -b merge-gyp https://github.com/joyeecheung/llnode.git | |
cd llnode | |
npm install --unsafe-perm | |
# FreeBSD | |
pkg install llvm50 git node www/npm python gmake # being lazy here by using the node in pkg | |
rm /usr/bin/lldb | |
ln -s /usr/local/bin/lldb50 /usr/bin/lldb | |
git clone --depth=1 -b merge-gyp https://github.com/joyeecheung/llnode.git | |
cd llnode | |
npm install --unsafe-perm | |
# yum-based distros | |
yum install python git | |
git clone --depth=1 -b merge-gyp https://github.com/joyeecheung/llnode.git | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash | |
nvm install stable | |
# CentOS | |
yum install centos-release-scl | |
yum install llvm-toolset-7 | |
scl enable llvm-toolset-7 bash | |
export CC=clang | |
export CXX=clang++ | |
cd llnode | |
npm install --unsafe-perm | |
# Fedora | |
yum install llvm lldb clang | |
export CC=clang | |
export CXX=clang++ | |
cd llnode | |
npm install --unsafe-perm | |
# Test it out | |
sh +x ./llnode.sh -- `which node` --abort_on_uncaught_exception test/fixtures/d8-scenario.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment