Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 04-03-2009, 12:57 PM   #1
Senior Member
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Switching GCC is not working

I am using Debian Lenny.

I have two GCC versions installed - 4.1 and 4.3:
debian:/usr/bin# ls gcc*
gcc  gcc-4.1  gcc-4.3  gccbug-4.1  gccontrol
My current GCC version is:
debian:/usr/bin# gcc -v
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug --with-tune=generic --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.3 20080704 (prerelease) (Debian 4.1.2-25)
I would like to switch that to 4.3 permanently. How can I do that?

I tried following this link but did not work for me.
Old 04-03-2009, 01:10 PM   #2
the trooper
Senior Member
Registered: Jun 2006
Location: England
Distribution: Debian Stretch Amd64
Posts: 1,477

Rep: Reputation: Disabled
Maybe this may help?

The trooper
Old 04-03-2009, 02:17 PM   #3
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,243
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
Originally Posted by the trooper View Post
Maybe this may help?

The trooper
Now that's a useful link, I've always set gcc temporarily never gave much thought to doing it permanently.

then there's update-alternatives again refering to group names for the alternatives.. but where do you find a LIST of the groups that can be used with update-alternatives ?

I did a little searching and ran across galternatives, which provides a gui you can use to set these options, and since you have a gui you can see all the groups for alternatives.. finally..

aptitude installl galternatives
gksu galternatives

Does anyone know where I would be able to find just a straight list ? web page, man page, etc ?

or better yet, a way to make update-alternatives to spit out a list of all the groups ? the only option in the man page appears to be --list to view the alternatives for a group you specify by name..


Err didn't mean to hijack the thread.. it just got me thinking. Yeah I know dangerous

never mind, I found the list..
ls /etc/alternatives

Last edited by farslayer; 04-03-2009 at 02:22 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Switching distros, can I keep my old apps working aviendha Linux - Newbie 10 11-03-2008 08:16 PM
switching between gcc versions DrAMac Debian 2 08-30-2005 06:21 PM
switching monitors with mandrake 10 isn't working. ideas? bloodredbath Linux - Hardware 1 03-13-2004 09:19 PM
switching from 1 dead ISP 2 another working one BloodyTiger Linux - Networking 3 10-07-2003 12:35 AM
Switching TTYs not working wapcaplet Linux - General 6 02-20-2003 09:43 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 12:45 AM.

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