LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 11-10-2009, 02:48 PM   #1
bozox
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Rep: Reputation: 0
GCC not latest, yet not upgradable


Hi all,

I have a Debian box. It has GCC 4.1.1-21 - at least that's what dpkg is telling me. Here,

http://packages.debian.org/stable/devel/gcc-4.1

it says that the latest stable GCC is 4.1.2-25. Yet in the Synaptic Package Manager, GCC is not marked as upgradable.

What's the proper way for me to upgrade, please?
 
Old 11-10-2009, 03:58 PM   #2
radiodee1
Member
 
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 632
Blog Entries: 11

Rep: Reputation: 34
maybe post your /etc/apt/sources.list file... do you have all the proper sources enabled?
 
Old 11-10-2009, 04:02 PM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,442

Rep: Reputation: 453Reputation: 453Reputation: 453Reputation: 453Reputation: 453
maybe install gcc-4.1 instead of gcc (which is on 4.3)?
 
Old 11-10-2009, 08:16 PM   #4
bozox
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
My sources.list looks like this:

Quote:
#
# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20080804-15:10]/ etch contrib main

# deb cdrom:[Debian GNU/Linux 4.0 r4a _Etch_ - Official i386 NETINST Binary-1 20080804-15:10]/ etch contrib main

deb http://ftp.us.debian.org/debian/ etch main
deb-src http://ftp.us.debian.org/debian/ etch main

deb http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
# deb http://http.us.debian.org/debian/ sarge main
# deb http://ftp.de.debian.org/debian lenny main
If I enable lenny, Synaptic acts weird. What I see is "0 packages listed, 1153 installed, 151608616 broken" - definitely not a right sight. If I enable sarge, I get a download error.

It's the gcc-4.1 package that has version 4.1.1-21. "gcc" I don't have installed, and Synaptic offers version 4:4.1.1-15 of that.

Last edited by bozox; 11-10-2009 at 08:18 PM.
 
Old 11-11-2009, 07:47 AM   #5
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 514

Rep: Reputation: 34
What do you mean "enable lenny/enable sarge"?

Your system seems to be etch. According to debian.org, the gcc version in etch is 4:4.1.1-15. This is what you get while upgrading.

You may be able to install newer packages from newer distros (e.g. lenny), look for apt-pinning (e.g. http://wiki.debian.org/AptPinning). But it may run into problems. Gcc in lenny is 4.3.2-1.1

Do you have any special reason not to upgrade to lenny (or what I would do) to squeeze? I would perhaps go that way.
 
Old 11-11-2009, 11:09 AM   #6
bozox
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 0
By "enable" I mean - go to the Reporitories list in Synaptic, place a checkmark next to one.

gcc and gcc-4.1 are two distinct packages. My system came without gcc.

I'll try and upgrade to lenny. Good point.
 
Old 11-11-2009, 12:14 PM   #7
otoomet
Member
 
Registered: Oct 2004
Location: Tartu, Århus,Nürnberg, Europe
Distribution: Debian, Ubuntu, Puppy
Posts: 514

Rep: Reputation: 34
'gcc' is a sort of virtual package which gives you the default gcc version (4.3 in lenny, afaik). Lenny has packages gcc-3.4, 4.1, 4.2, 4.3 where the last one is the default. I believe 4.1 is the default for etch.

But yes, unless you have any special reason to have a newer gcc and retain etch, I would upgrade.

Squeeze should become the stable next spring, so if you don't mind little inconveniences every now and then, then I would recommend to go for that.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
is there any latest gcc version available in .rpm package anushineforever Linux - Software 1 01-04-2009 01:20 AM
upgradable linux distro? s4lt1n3 Linux - Newbie 9 01-01-2009 09:48 PM
what 64 bits PC with upgradable motherboard should we choose? ArturJr General 1 12-08-2006 07:52 AM
upgrade to latest gcc from 3.3.2 tcma Fedora - Installation 0 12-08-2004 10:41 AM
unable to install latest gcc version sapadman Linux - Newbie 1 07-20-2004 05:22 PM


All times are GMT -5. The time now is 02:10 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration