Re: [AMBER] Specifying a gcc compiler for amber tools installation

From: Jason Swails <jason.swails.gmail.com>
Date: Fri, 28 Oct 2011 16:01:46 -0400

There are 2 ways. You can either hard-code the absolute path of your new
gcc, gfortran, and g++ into the configure script, or you can prepend your
new gcc path to your PATH environment variable while you compile your code.

I would suggest the latter (but don't make it permanent). To do this in
bash, use the command

export PATH=$HOME/bin\:$PATH

or whichever home directory your gcc/g++/gfortran binaries are in. In
tcsh/csh, use the command

setenv PATH "$HOME/bin:$PATH"

That will make the shell search in $HOME/bin before anywhere else for
binaries.

HTH,
Jason

On Fri, Oct 28, 2011 at 1:21 PM, Sai Kumar Ramadugu <sramadugu.gmail.com>wrote:

> Dear All
> I'm trying to install amber tools 1.5 and the default gcc it takes its
> 4.1.1
> from /usr/local/bin. I have new version installed in my home. How can I
> set
> the gcc for new version. Sorry if this had been posted and answered
> already.
> Thanks for time.
> Sai
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>



-- 
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Candidate
352-392-4032
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Oct 28 2011 - 13:30:02 PDT
Custom Search