This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Downgrade unsuccessfull


> Any ideas?

Well, I don't know if the following is the best way to deal with your problem, but it
works very well for me:

1- At configure time I add the parameter "--prefix=/usr/local/something", then I build and
install in the usual way.
2- When I want to use the compiler, I source (for tcsh):

    setenv PATH   /usr/local/something/bin:$PATH
    setenv LD_LIBRARY_PATH /usr/local/something/lib:$LD_LIBRARY_PATH
    setenv MANPATH  /usr/local/something/man:$MANPATH
    setenv INFOPATH  /usr/local/something/info:$INFOPATH

(if you prefer bash, PATH="/usr/local/something/bin:$PATH"; export PATH, etcetera...)

In this way, all the data of the compiler becomes first in the search lists and you can
use it as usual.

Cheers,
Paolo.




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]