Skip to content

Instantly share code, notes, and snippets.

@jasonbunk
Last active February 4, 2019 20:45
Show Gist options
  • Save jasonbunk/9f09392d6c82853a68d07c4e0c3651db to your computer and use it in GitHub Desktop.
Save jasonbunk/9f09392d6c82853a68d07c4e0c3651db to your computer and use it in GitHub Desktop.
Build Facebook's Watchman on Ubuntu 16.04, for the Nuclide plugin for Atom (nuclide.io)
#!/bin/bash
set -ex
# for Ubuntu 16.04
sudo apt-get install -y autoconf automake build-essential git libtool python-dev libssl-dev curl
# watchman installation
if [ -d watchman ]; then echo "existing folder \"watchman\" found; skipping. to rebuild, delete it";
else
git clone https://github.com/facebook/watchman.git
cd watchman
git checkout v4.9.0 # the latest stable release
./autogen.sh
./configure
make -j6
sudo make install
fi
# nodejs installation
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo npm install -g nuclide
echo "done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment