Hi,
In addition to Jason's advice, you may also want to prepend your
LD_LIBRARY_PATH variable:
export LD_LIBRARY_PATH=$GCCHOME/lib:$LD_LIBRARY_PATH
where $GCCHOME represents your GCC install directory. If you do this
you need to make sure this is set every time you run an executable
compiled this way.
-Dan
On Fri, Oct 28, 2011 at 4:01 PM, Jason Swails <jason.swails.gmail.com> wrote:
> 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
>
--
-------------------------
Daniel R. Roe, PhD
Postdoctoral Associate
BioMaPS Institute, Rutgers University
610 Taylor Road
Piscataway, NJ 08854
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Oct 28 2011 - 14:30:02 PDT