PDA

View Full Version : [ubuntu] Upgrading to gcc 4.4.0



dgohn
August 15th, 2009, 10:26 PM
I am having problems upgrading to GCC 4.4.0

When I sudo apt-get install gcc this is what I get:

:~# sudo apt-get install gcc
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc is already the newest version.


But its not...

:~# dpkg --list | grep gcc
ii gcc 4:4.3.1-1ubuntu2 The GNU C compiler
ii gcc-4.3 4.3.2-1ubuntu12 The GNU C compiler
ii gcc-4.3-base 4.3.2-1ubuntu12 The GNU Compiler Collection (base package)
ii libgcc1 1:4.3.2-1ubuntu12 GCC support library


Can anyone point me in the right direction?

Thanks,

Dan

dgohn
August 16th, 2009, 08:14 AM
*bump* still having problems, can't figure out how to upgrade to gcc 4.4.0 on Ubuntu Server

PmDematagoda
August 16th, 2009, 08:28 AM
If you want to upgrade GCC, then you will have to upgrade to a version of Ubuntu that has it like Ubuntu Karmic, which unfortunately is still under development, since you will only get security updates(mostly) on a stable version of Ubuntu.

You could download the GCC source and install it manually, but doing so would be a complicated process since you probably need to recompile all the programs which would take a really long time, there maybe a way to maintain an install of GCC 4.4.0 separately from that provided by Ubuntu, but I do not know of such a way.

Edit:- Perhaps this might help, but do this at your own risk:-
http://gcc.gnu.org/install/

dgohn
August 16th, 2009, 03:22 PM
So there is no way to get GCC 4.4.0 onto Ubuntu? Seems there would be an upgrade or something... odd.

konqui
August 16th, 2009, 03:44 PM
Go in software sources
Under updates tab enable pre and unsupported
Then in terminal
sudo apt-get update
sudo apt-get upgrade gcc

dgohn
August 16th, 2009, 04:52 PM
Go in software sources
Under updates tab enable pre and unsupported
Then in terminal
sudo apt-get update
sudo apt-get upgrade gcc

Is there a way to do this all from the terminal?

Thanks,

Dan

dgohn
August 16th, 2009, 05:12 PM
Ok did that, but sudo apt-get upgrade gcc is coming back with this...

The following packages will be upgraded:
gtk2-engines-pixbuf libclamav5 libgtk2.0-0 libgtk2.0-bin libgtk2.0-common
libpam-smbpass libparted1.8-9 libsmbclient libwbclient0 linux-libc-dev
parted samba samba-common samba-doc smbclient smbfs update-manager
update-manager-core winbind


No GCC... any ideas?