[AMBER] AmberTools modifications for Ubuntu 9.10

From: peker milas <pekermilas.gmail.com>
Date: Thu, 3 Dec 2009 16:58:31 -0500

Recently we attempted to installed AmberTools 1.2 on Ubuntu 9.10
(Karmic) and experienced a few fairly straightforward issues during
configuration as well as compilation. First, the configuration script
appears to use a poor heuristic for identifying the g++ compiler
version, relying on `grep version` to identify the appropriate line in
the g++ -v output. Unfortunately, Ubuntu includes the
--with-pkgversion flag in the configuration command line, causing this
heuristic to fail. I worked around this with the following,

diff -r amber10/src/configure_at /amber/amber10/src/configure_at
>    return 0;
<         version=`$cplusplus -v 2>&1 | grep version | cut -d' ' -f3`
>         version=`$cplusplus -v 2>&1 | grep ' version' | cut -d' ' -f3`
This patch also fixes a compiler warning due to incorrect test code
(the first chunk).
Secondly, g++ 4.4 is far stricter about standard library header files.
In particular, sprintf and the like require the <cstdio> header, which
is missing in amber10/src/gleap/mortsrc/common/fortran.cpp. This is
fixed by the following patch,
diff -r amber10/src/gleap/mortsrc/common/fortran.cpp
> #include <cstdio>
Please consider merging these patches into the upstream tree. Thanks,
- Ben Gamari
AMBER mailing list
Received on Thu Dec 03 2009 - 14:00:02 PST
Custom Search