Monday, 5 March 2012

Grab, build and install the development version of Open Babel on Linux Mint 12

This is one of those "Notes to self" posts. I just installed Linux Mint 12 into a VM. Here's what I had to do to build the development version of Open Babel, complete with GUI and Python bindings. As far as I know, these instructions should also work for Ubuntu 11.10 (Oneiric oh-whatever).
export OB=$HOME/openbabel
sudo apt-get update
sudo apt-get install cmake subversion g++ swig2.0 python-dev libxml2-dev wx-common wx2.8-headers libwxbase2.8-dev libeigen3-dev libwxgtk2.8-dev
mkdir $OB
cd $OB
svn checkout trunk
mkdir build
cd build
make -j2 && make install
export PATH=$OB/install/bin:$PATH
export PYTHONPATH=$OB/install/lib:$PYTHONPATH
Thereafter, just type "svn update" in $OB/trunk, and "make && make install" in $OB/build, to get the latest and greatest.

No comments: