Skip to content

Instantly share code, notes, and snippets.

@llazzaro
Last active May 4, 2016 15:55
Show Gist options
  • Save llazzaro/28d84f5daf936b707b2157ef896ee1b6 to your computer and use it in GitHub Desktop.
Save llazzaro/28d84f5daf936b707b2157ef896ee1b6 to your computer and use it in GitHub Desktop.
openbabel compilation
sudo apt-get install build-essential
wget http://www.cmake.org/files/v3.2/cmake-3.2.2.tar.gz
tar xf cmake-3.2.2.tar.gz
cd cmake-3.2.2
./configure
make
git clone https://github.com/openbabel/openbabel.git
cd openbabel
mkdir build
cd build
cmake .. -DPYTHON_BINDINGS=ON -DRUN_SWIG=ON -DCMAKE_INSTALL_PREFIX=~/anaconda2 -DPYTHON_INCLUDE_DIR=~/anaconda2/include/python2.7 -DCMAKE_LIBRARY_PATH=~/anaconda2/lib -DSWIG_DIR=~/anaconda2/share/swig/3.0.2/ -DSWIG_EXECUTABLE=~/anaconda2/bin/swig -DPYTHON_LIBRARY=~/anaconda2/lib/libpython2.7.so -DCMAKE_BUILD_TYPE=DEBUG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment