[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] GCC Update



On Monday, 15 Nov 2004, Rui Fernandes wrote:
> I managed to download a newer version of Gcc, that dependes of a
> glibc-cross, that depends of binutils.
> I tryed to install them with the commands ( by order of dependency ):
> 
> dpkg -i binutils-version.deb
> dpkg -i libc-cross-version.deb
> dpkg -i gcc-version.deb
> 
> At the first sight it seemed that Debian installed something, or at least
> changed something; but when I typed "gcc -v", it tells me that I still got
> the older version of Gcc (2.95.4).
> What did I do wrong? How can I install correctly the Debian packages? This
> question is for all - I really need the help.
You can have several versions of gcc on your system:

didi@nixe:/$ find /usr/bin -name gcc-*
/usr/bin/gcc-2.95
/usr/bin/gcc-3.0
/usr/bin/gcc-3.3

didi@nixe:/$ /usr/bin/gcc-2.95 -v
gcc version 2.95.4 20011002 (Debian prerelease)
didi@nixe:/$ /usr/bin/gcc-3.0 -v
gcc version 3.0.4
didi@nixe:/$ /usr/bin/gcc-3.3 -v
gcc-Version 3.3.4 (Debian 1:3.3.4-13)

And gcc is "only" a symlink to one of the versions!
didi@nixe:/$ ls -l /usr/bin/gcc
lrwxrwxrwx  1 root root 7 2004-10-16 11:12 /usr/bin/gcc -> gcc-3.3

If you want to have a "gcc-3.3-system", you might want to make
apt-get dist-upgrade to sarge!

Regards
-didi


Reply to: