Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - Linux Tweaks > ARCHIVES - HowTos Discussions
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - HowTos Discussions Have any questions about any HowTo found at the wiki? Post in here!

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-Jun-2006, 06:52
hipisak
Guest
 
Posts: n/a
Thumbs up

I have installed SuSE 10.1 on my box which comes with gcc-4.1.0
Does anybody knows how to downgrade from gcc-4.1.0 to gcc-3.3.6 or lower?

I have downloaded core gcc-3.6.0 and untared it
then ./configure --prefix=/opt/gcc33 --program-suffix=-3.3
then make bootstrap
then make install
but when I tried gcc -v i still saw that my gcc is version 4.1.0


What should I do?? Thx in advance...
  #2 (permalink)  
Old 02-Jan-2007, 10:32
soixie
Guest
 
Posts: n/a
Default

you will almost certainly create problems doing this. gcc 4.x and 3.3.x do not produce compatible output.

you'd be better looking at 4.1.1 or 4.2 if anything.

what is your problem / reason for wanting this?

  #3 (permalink)  
Old 04-Jan-2007, 02:18
svet
Guest
 
Posts: n/a
Default

Quote:
I have installed SuSE 10.1 on my box which comes with gcc-4.1.0
Does anybody knows how to downgrade from gcc-4.1.0 to gcc-3.3.6 or lower?

I have downloaded core gcc-3.6.0 and untared it
then ./configure --prefix=/opt/gcc33 --program-suffix=-3.3
then make bootstrap
then make install
but when I tried gcc -v i still saw that my gcc is version 4.1.0
What should I do?? Thx in advance...
[/b]
you get this version of gcc, because this is the first gcc, that is found in your current path.

I would advise you to:
1. If you want to compile a project with your own make file, use the line for the gcc = /opt/gcc33/bin/gcc or g++
2. If you need it for something else, you have to add it to the path:
export PATH=/opt/gcc33/bin:$PATH
  #4 (permalink)  
Old 04-Jan-2007, 03:56
soixie
Guest
 
Posts: n/a
Default

so then he will have two compilers sets and accompanying libs in his path. Not the best way to build a stable environment.

Be warned , this is not trivial. gcc is not just an executable.

gcc=gnu compiler collection , note the word collection.

c , c++ and fortran .

Upgrading gcc needs to be done with a bit of thought. Going backwards is likely to create serious breakage depending on what you do once you have it installed.

 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2