Last active
August 29, 2015 14:17
-
-
Save machbio/7bfc13216556763a6b74 to your computer and use it in GitHub Desktop.
OpenBabel Installation from Source with Python Bindings and No GUI
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
wget http://sourceforge.net/projects/openbabel/files/openbabel/2.3.1/openbabel-2.3.1.tar.gz | |
tar xvfz openbabel-2.3.1.tar.gz | |
mkdir build | |
cd build | |
sudo apt-get install libxml2-dev zlib1g-dev libeigen2-dev libcairo2-dev python-dev cmake | |
cmake ../openbabel-2.3.1 -DCMAKE_INSTALL_PREFIX=/path/to/install -DCMAKE_BUILD_TYPE=DEBUG -DPYTHON_BINDINGS=ON -Wno-dev | |
make -j 8 | |
make install | |
echo "export LD_LIBRARY_PATH=/babel/install/path/lib:/usr/local/lib" > "~/.bashrc" | |
echo "export PATH=$PATH:/babel/install/path/bin" > "~/.bashrc" | |
mkvirtualenv custom-pythonenv | |
workon custom-pythonenv | |
add2virtualenv /babel/install/path/lib/python2.7/site-packages | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment