Wednesday, September 16, 2015

Install RDKit 2015-03 Build on Ubuntu 14.04 / Linux Mint 17

RDKit is an open source toolkit for cheminformatics. It has many functionalities to work with chemical files.

Follow the below guide to install RDKit 2015-03 build on an Ubuntu 14.04 / Linux Mint 17 computer. Since Ubuntu packages don’t have the latest RDKit for trusty, you have to build RDKit from its source.

1. Install Dependencies

sudo apt-get install flex bison build-essential python-numpy cmake python-dev sqlite3 libsqlite3-dev libboost1.54-all-dev

2. Download the Build

cd /usr/local
sudo wget
sudo tar -xzf RDKit_2015_03_1.tgz
sudo mv rdkit-Release_2015_03_1/ rdkit
cd rdkit/
sudo mkdir build

3. Set Environment Variables

vim ~/.bashrc
# Enter following three lines at the end of .bashrc
export RDBASE="/usr/local/rdkit"
source ~/.bashrc

4. Download InChi API (Optional, remove the arg in the next step if you skip)

sudo bash

5. Build

cd $RDBASE/build
sudo make
sudo make install

6. Verify

>>> import rdkit
>>> rdkit.rdBase.rdkitVersion

Please comment if you have any issue with this installation.


Olivier Lavergne said...

Hi Gunkor, thank you so much for the tuto.
Here is what I got at step 3;

The program 'vim' can be found in the following packages:
* vim
* vim-gnome
* vim-tiny
* vim-athena
* vim-gtk
* vim-nox
Try: sudo apt-get install

I am new to Unbuntu (14.04 LTS), but quite pleased with it so far. I have no clue about what to do next, thank for any help.

Güngör Budak said...

Hey Oliver

You need to use some kind of text editor to enter those lines into .bashrc. You may try nano. You're getting that error because I was using vim to edit texts. Alternatively, you can use gedit.


gedit ~/.bashrc &

Hope it'll work for you