Skip to content

Instantly share code, notes, and snippets.

@joyeecheung
Last active December 9, 2019 16:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joyeecheung/f458f9a668e0e9546d48d899298e7331 to your computer and use it in GitHub Desktop.
Save joyeecheung/f458f9a668e0e9546d48d899298e7331 to your computer and use it in GitHub Desktop.
Commands to build llnode on throw-away VPS with different UNIX OSs
# 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