LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-05-2010, 12:38 PM   #1
teamcoders
LQ Newbie
 
Registered: Apr 2010
Posts: 1

Rep: Reputation: 0
Uninstalling gcc-4.4 in fedora 12


Hi!
We have to install gcc4.3. To which we believe we have to un-install gc-4.4. We are working on Fedora 12.

About OS :

$uname -a
Linux troy 2.6.32.9-67.fc12.x86_64 #1 SMP Sat Feb 27 09:26:40 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux

About gcc :

$ gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.3 20100127 (Red Hat 4.4.3-4) (GCC)


Now, we want gcc 4.3 to be running.



Thanks in advance.

Regards,
-teamcoders
 
Old 04-05-2010, 01:35 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
2 versions of gcc should be able to exist. Fedora has you, so uninstalls are not an issue except to say that if it asks you stupid questions, don't give stupid answers :-).

The way to use another gcc is put it elsewhere (e.g. /opt, /usr/local) and tweak the path to put that directory before /usr/bin. You can also use
"CC=/opt/my_other/gcc" make
 
Old 04-05-2010, 01:56 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Please do not remove the default gcc / g++ (c++) version 4.4.x .
You can have all the compilers, you want, installed at the same time.
The main = the default gcc / c++, and then some "compat" compilers,
meaning : they are created to have no conflicting files.
The defaults compats for Fedora are:
compat-gcc-34-3.4.6, compat-gcc-34-c++-3.4.6.

I also have these installed on Fedora 12 ( i686 ) :
gcc3.3-3.3.6 / gcc3.3-c++-3.3.6 (PCLinuxOS packages.)
and gcc43-4.3.4 / gcc43-c++-4.3.4 , Suse 11.2 packages ...
You will need :
gcc43-4.3.4_20090804-2.4.x86_64.rpm
gcc43-c++-4.3.4_20090804-2.4.x86_64.rpm
Also required:
cpp43-4.3.4_20090804-2.4.x86_64.rpm
libstdc++43-devel-4.3.4_20090804-2.4.x86_64.rpm
http://download.opensuse.org/distrib...s/suse/x86_64/

Please move all four packages to an empty folder and install with :
# rpm -Uvh --nodeps <package> <package> <package> <package>
Reason for --nodeps :
The already installed Fedora libgcc etc, have different names.
.....

Using gcc-4.3, example : make CC=gcc-4.3 CXX=g++-4.3
Or edit your Makefile.in to CC=gcc-4.3, CXX=g++-4.3
.....

Last edited by knudfl; 04-05-2010 at 02:03 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
uninstalling gcc 3.2 ali_hammad Linux - Software 2 03-09-2005 04:49 AM
Uninstalling fedora core 1 ravenouss Linux - Newbie 1 01-30-2005 03:06 PM
Uninstalling Fedora 2? cibaker Fedora 7 11-25-2004 02:30 PM
Uninstalling fedora Raven_Nights Linux - Software 4 04-25-2004 11:14 PM
Uninstalling gcc Riggs Linux - Newbie 3 08-02-2003 03:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 12:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration