gcc install advice
Brian Olson
bz_lt_yr@yahoo.com
Thu Apr 11 11:29:00 GMT 2002
Thanks for the help bjorn.
I went to replace the links in /usr/bin as you
advised, but as you can see below on my redhat system
they werent links. Would It be okay to replace the
files there with symbolic links? Would this have any
adverse affects?
[root@envy bin]# pwd
/usr/bin
[root@envy bin]# ls gcc -l
-rwxr-xr-x 2 root root 78892 Sep 4
2001 gcc
You also mentiond that I might want to re-compile a
few other things. Are there any other things in
particular that you would recomend re-compiling? All
I am looking to do with this system is complile
Apache, MySQL and PHP, and then use this system to
start learning C and C++ a little.
Thanks alot for any advice.
Brian
--- bjorn rohde jensen <shamus@tdcadsl.dk> wrote:
> Hi Brian,
>
> What you are seeing is almost garantied to be a
> path issue. If you really want to replace the
> RedHat GCC 2.96 system wide, you could change the
> symbolic link /usr/bin/gcc and friends to point
> to the new compiler.
> You might want to recompile a few things after
> replacing the RedHat compiler. Several people have
> experienced problems linking C++ code compiled with
> RedHat 2.96 and GCC 2.95.3. C code should be ok.
> I am not entirely sure calling this proceedure
> a downgrade is entirely correct. It is not difficult
> to assign a number to something....;)
>
> Yours sincerely,
>
> bjorn
>
> Brian Olson wrote:
> >
> > I am running Redhat Linux 7.2. It comes with GCC
> > 2.96. I am attempting to downgrade this to 2.95.
> I
> > have downloaded the source and I have performed
> the
> > steps listed in the install instructions. After
> > reading a few other posts I am 95 % sure that I
> did it
> > right. But I am left with 1 newbie question.
> When I
> > check the version logged in as root with the
> command
> > gcc -v I get version 2.96. When I check it as a
> > regular user I get 2.95. I am fairly certain that
> it
> > is a path issue, but I don?t know how to change
> the
> > path. I can probably figure out the path problem
> > (Good learning experience), but what I realy need
> to
> > know, If I fix that path issue, Will the system
> by
> > default use 2.95 when ever I build a program with
> > make?
> >
> > Just for refrence here are the steps I took when
> > installing GCC.
> >
> > 1. Download gcc-2.95.3.tar.gz to
> /usr/local/src.
> > 2. cd /usr/local/src
> > 3. tar -zxvf gcc-2.95.3.tar.gz
> > 4. mkdir /usr/local/src/gcc-objdir
> > 5. cd /usr/local/src/gcc-objdir
> > 6. /usr/local/src/gcc-objdir/configure
> > 7. make bootstrap
> > 8. make install
> >
> > The system is running redhat linux 7.2, on a
> Pentium
> > 133
> >
> > Thanks for any help or advice in advance
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Tax Center - online filing with TurboTax
> > http://taxes.yahoo.com/
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
More information about the Gcc-help
mailing list