On Fri, May 28, 2010 at 1:20 PM, Bill Ross <ross.cgl.ucsf.edu> wrote:
> > When you install AmberTools 1.4 you will not need to uninstall AmberTools
> > 1.2 or Amber 10. Instead, just place the path for Amber 11 (export
> > AMBERHOME=/usr/local/amber11) before defining the path for Amber 10
> > (AMBERHOME=/usr/local/amber10) in your .bashrc file. This will set up
> your
> > environment such that the computer will look for the executable files in
> > Amber 11 *before* the executable files in Amber 10, which is what you
> want.
>
> It doesn't work this way - your environment has only one AMBERHOME
> variable, it is not like a path where directories are indexed
> sequentially.
>
Yes. One at a time. To install amber10, though, AMBERHOME needs to point to
/usr/local/amber10 temporarily (while the install is taking place). Then it
should point to /usr/local/amber11 to install AmberTools 1.4, and it should
remain pointing to /usr/local/amber11 after it's done (since AmberTools
makes the most use of AMBERHOME; indeed probably the only use of it).
However, in order for MMPBSA.py to operate successfully, both
/usr/local/amber10/bin and /usr/local/amber11/bin must be in the PATH, with
/usr/local/amber11 coming first so AmberTools-1.4 binaries are used before
AmberTools-1.2 that reside in /usr/local/amber10. This is what Bill meant,
I believe. (Though defining AMBERHOME a second time in the .bashrc does
overwrite the first definition).
For installing MMPBSA.py, though, you should probably create a symbolic link
from nab in /usr/local/amber11/bin to the directory /usr/local/amber10/bin
in order to build the nmode program with the proper nab compiler. You can
do this as follows:
sudo mv /usr/local/amber10/bin/nab /usr/local/amber10/bin/nab-1.2
sudo ln -s /usr/local/amber11/bin/nab /usr/local/amber10/bin
I used sudo because typically users don't have write permissions in
/usr/local, but if you changed the ownership of /usr/local/amber10 and 11,
then you don't need the sudo (but if you don't need the sudo, you generally
know you don't...)
What this does is to move nab from AT 1.2 "out of the way" so that a soft
link can be put in /usr/local/amber11/bin, so that MMPBSA.py installation
will use that.
Ideally what should be in your .bashrc should look something like this:
export AMBERHOME=/usr/local/amber11
export PATH=$AMBERHOME/bin\:/usr/local/amber10/bin\:$PATH
Hope this helps,
Jason
> Bill
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
--
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri May 28 2010 - 14:00:03 PDT