Skip to content

Instantly share code, notes, and snippets.

@jrfaller
Last active January 27, 2018 18:16
Show Gist options
  • Save jrfaller/e6f1859795c92a99bcc8ddcff9272628 to your computer and use it in GitHub Desktop.
Save jrfaller/e6f1859795c92a99bcc8ddcff9272628 to your computer and use it in GitHub Desktop.
Compile srcML on travis trusty
sudo apt-get update
sudo apt-get install gcc g++ libxml2-dev libxslt1-dev libarchive-dev antlr libantlr-dev libcurl4-openssl-dev libssl-dev
wget https://netix.dl.sourceforge.net/project/boost/boost/1.55.0/boost_1_55_0.tar.gz
tar -xvzf boost_1_55_0.tar.gz
cd boost_1_55_0
./bootstrap.sh --without-libraries=atomic,chrono,context,coroutine,exception,graph,graph_parallel,iostreams,locale,log,math,mpi,python,random,serialization,signals,test,timer,wave
sudo ./b2 link=static cxxflags="-fPIC -static -Wl,--whole-archive" threading=multi install
wget http://131.123.42.38/lmcrs/beta/srcML-src.tar.gz
tar -xvzf srcML-src.tar.gz
cd srcML-src
cmake .
make
cd ..
export PATH="$PWD/srcML-src/bin:$PATH"
sudo apt-get install ocaml ocaml-native-compilers camlp4
git clone https://github.com/GumTreeDiff/cgum.git --depth 1
cd cgum
make
export PATH="$PWD/cgum:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment