Question about building Avogadro on Ubuntu

Hello,

I would like to build Avogadro 1.0.0 on Ubuntu 9.04 and I hope you can clarify a few things for me - I’m still new to Linux.

According to the INSTALL file in avogadro-1.0.0.tar.bz2 I need to have:

CMake 2.6.0 or later
Qt 4.5.2 or later
OpenBabel 2.2.2 or later
Eigen 2.0.3 or later

I already have OpenBabel installed.

  1. How can I tell if I have Qt 4.5.2 or later?

  2. I went to the CMake site, http://www.cmake.org/cmake/resources/software.html

the instructions say
"The .sh files are self extracting gziped tar files. To install a .sh file, run it with /bin/sh and follow the directions. "

        What does this mean exactly?  I'm not sure how to run this file.
  1. The Avogadro wiki has instructions for installing Eigen at

http://avogadro.openmolecules.net/wiki/Compiling_on_Linux_and_Mac_OS_X

Before I realized that I would need CMake to install Eigen, I tried following these instructions and got an error after:
mkdir $HOME/build/eigen2

the error message said that I could not make the directory, no such directory.

Is this because I didn’t have CMake installed yet?

Thanks for your help.

Steve

Dr. Steven P. Wathen
Associate Professor of Chemistry
Siena Heights University
1247 East Siena Heights Drive
Adrian, MI 49221

(517) 264-7657
swathen@sienaheights.edu

On Thu, Nov 5, 2009 at 1:17 PM, Steven Wathen SWATHEN@sienaheights.edu wrote:

Hello,

I would like to build Avogadro 1.0.0 on Ubuntu 9.04 and I hope you can clarify a few things for me - I’m still new to Linux.

According to the INSTALL file in avogadro-1.0.0.tar.bz2 I need to have:

CMake 2.6.0 or later
Qt 4.5.2 or later
OpenBabel 2.2.2 or later
Eigen 2.0.3 or later

Fortunately it’s pretty easy to get the needed version of CMake,
OpenBabel, and Eigen in Ubuntu 9.04:

sudo apt-get install cmake libopenbabel-dev libeigen2-dev

  1. How can I tell if I have Qt 4.5.2 or later?

apt-cache policy libqt4-dev

You should have Qt 4.5.0. If that’s sufficient (I’m not really sure
right now). If it is then just sudo apt-get install libqt4-dev

If you want python support then you’ll also want sip4 and
libboost-python-dev. To sum up, here’s what I do:

sudo apt-get install sip4 cmake libqt4-dev libboost-python-dev
libopenbabel-dev libeigen2-dev

-Jordan