Osra is a a utility designed to convert graphical representations of chemical structures create by Igor Filippov at the National Cancer Institute. This page documents how to compile and install Osra on Ubuntu Linux 11.10. These instructions may work on other versions of Ubuntu Linux and on Debian Linux. Please leave a comment if you have compiled Osra using these instructions on a different version of Ubuntu, or on other Linux distributions.
At the time of writing this doc, March 2012, the Osra version is 1.3.8 and is available at:
I copied all the source to a directory in /tmp. If you need the source code at some later point in time, don’t use /tmp as files in /tmp are deleted upon reboot (if they’re older than 14 days). Also, at the time of writing Osra requires a patched version of Gocr for Osra to work. You need to install Gocr before you try to compile and install Osra, you also need to install other packages required for Osra to compile. Most are listed below, but see the Osra Homepage for more details.
This is a fix for the bug where Cogs launches with the following output:
Shader compile log for data/effects/TextureBumpCubemap.fsh:
Fragment shader failed to compile with the following errors:
ERROR: 0:41: error(#132) Syntax error: ‘smooth’ parse error
ERROR: error(#273) 1 compilation errors. No code generated
Apparently the word “smooth” is reserved, but only on ATI cards in Linux. The fix is to modify the following file.
Just do a global replace of the word “smooth” with “Smooth”.
A huge thanks to Renee Marie Jones, who figured this one out
I wasn’t seeing that particular output on the console, and the screen was just blank/black and I could hear the music. But, this fix did work for me on Ubuntu Linux 10.10 (Maverick).
If you want to install Oracle’s SQL Developer on Ubuntu (or another DEB based system such as Debian) you can do one of the following:
Download the RPM package and install using rpm (not advisable).
Download the RPM package and convert to a DEB package using alien
Download the ZIP file titled “Oracle SQL Developer for other platforms” and manually install
Use the make-sqldeveloper-package to convert the ZIP file into a DEB package
I used the make-sqldeveloper-package, which is available for Debian and Ubuntu and it’s derivatives. However, the man page and the instructions are little unclear on how to use it. You need to download the zip file available at Oracle’s (and not the RPM file nor any of the other packages) and then use the make-sqldeveloper-package to convert it to a DEB which you can then install using the dpkg command.
This is preferable to using rpm or alien as you can more easily manage the package using Debian’s and Ubuntu package management tools, plus it will integrate SQL Developer into Gnome’s Menu System . Plus, when Oracle updates their version you can use make-sqldeveloper-package to create an updated DEB package and easily update the version you have installed. The procedure outlined below works on Ubuntu Karmic and should also work on any Debian version that has the make-sqldeveloper-package.
This is a brief HOWTO on compiling OSRA, (Optical Structure Recognition) on Ubuntu Jaunty. To quote the OSRA home page, OSRA is
… is a utility designed to convert graphical representations of chemical structures, as they appear in journal articles, patent documents, textbooks, trade magazines etc., into SMILES (Simplified Molecular Input Line Entry Specification – see http://en.wikipedia.org/wiki/SMILES) or SD file – a computer recognizable molecular structure format. OSRA can read a document in any of the over 90 graphical formats parseable by ImageMagick – including GIF, JPEG, PNG, TIFF, PDF, PS etc., and generate the SMILES or SDF representation of the molecular structure images encountered within that document …
Update: I’ve a newer document that shows how to install Osra on Ubuntu 11.10 (Oneiric):
Don’t install ocrad and remove it if it’s on your system (you can probably reinstall if you need to after you get Osra to compile): sudo apt-get remove –purge ocrad;
Instead of manually getting the source packages download the sources used to build the packages for Ubuntu if available. Make sure the src lines are commented in, in your /etc/apt/sources.list . This will automatically download and extract the code into the current directory:
cd /tmp/OSRA; apt-get source gocr ocrad potrace;
This downloads Gocr 0.46 which the OSRA docs say may not work: