Last active
November 29, 2015 10:36
-
-
Save greglandrum/4b1cc5fa020c30626e07 to your computer and use it in GitHub Desktop.
vagrant provisioning file to set a lucid64 box up to be able to build the RDKit java wrappers.
This file contains 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
#!/usr/bin/env bash | |
apt-get update | |
apt-get install -y python-software-properties software-properties-common | |
apt-get install -y build-essential gcc-4.1 g++-4.1 sqlite3 openjdk-6-jdk openjdk-6-jre libpcre3 libpcre3-dev | |
add-apt-repository ppa:git-core/ppa | |
apt-get update | |
apt-get install -y git-core | |
if [ \! -e /usr/bin/cmake ] | |
then | |
cd /tmp | |
if [ \! -e /tmp/cmake-3.3.2-Linux-x86_64.tar.gz ] | |
then | |
wget -nv --no-check-certificate https://cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz | |
fi | |
tar xzf /tmp/cmake-3.3.2-Linux-x86_64.tar.gz | |
cp cmake-3.3.2-Linux-x86_64/bin/* /usr/bin | |
cp -r cmake-3.3.2-Linux-x86_64/share/* /usr/share | |
fi | |
if [ \! -e /usr/local/bin/swig ] | |
then | |
cd /tmp | |
if [ \! -e /tmp/swig-3.0.7.tar.gz ] | |
then | |
wget -nv --no-check-certificate https://sourceforge.net/projects/swig/files/swig/swig-3.0.7/swig-3.0.7.tar.gz | |
fi | |
tar xzf /tmp/swig-3.0.7.tar.gz | |
cd swig-3.0.7 | |
./configure | |
make -j2 && make -j2 install | |
fi | |
if [ \! -e /usr/local/lib/libboost_serialization.a ] | |
then | |
cd /tmp | |
if [ \! -e /tmp/boost_1_48_0.tar.gz ] | |
then | |
wget -nv --no-check-certificate http://sourceforge.net/projects/boost/files/boost/1.48.0/boost_1_48_0.tar.gz | |
fi | |
tar xzf /tmp/boost_1_48_0.tar.gz | |
cd boost_1_48_0 | |
CXX=/usr/bin/g++-4.1 CC=/usr/bin/gcc-4.1 CFLAGS="-fPIC" CXXFLAGS="-fPIC" ./bootstrap.sh --with-libraries=thread,system,regex,serialization | |
./b2 toolset=gcc-4.1 cxxflags="-fPIC" | |
./b2 toolset=gcc-4.1 cxxflags="-fPIC" install | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment