How do I reinstall gcc/g++?
Neil Cherry
ncherry at linuxha.com
Wed Feb 16 20:28:04 UTC 2011
On 02/16/2011 03:04 PM, NoOp wrote:
> On 02/16/2011 10:07 AM, Neil Cherry wrote:
>> Somehow my gcc/cpp/g++ are linked to nothing:
>>
>> $ ls -l /usr/bin/gcc*
>> lrwxrwxrwx 1 root root 7 2011-02-16 13:05 /usr/bin/gcc -> gcc-4.4
>> -rw-r--r-- 1 root root 0 2011-02-16 12:40 /usr/bin/gcc-4.4
>>
>> and no amount of removing, purging or reinstalling is fixing it. How
>> do I get this fixed?
>>
>
> Looks to me like it's linked to the proper file: /urs/bin/gcc-4-4. Or am
> I misunderstanding?
>
> $ ls -l /usr/bin/gcc*
> lrwxrwxrwx 1 root root 7 2011-01-20 14:05 /usr/bin/gcc -> gcc-4.4
> -rwxr-xr-x 1 root root 194128 2010-05-27 02:00 /usr/bin/gcc-4.1
> -rwxr-xr-x 1 root root 193212 2009-01-10 11:18 /usr/bin/gcc-4.2
> -rwxr-xr-x 1 root root 212168 2010-09-10 02:16 /usr/bin/gcc-4.3
> -rwxr-xr-x 1 root root 224488 2010-09-27 11:43 /usr/bin/gcc-4.4
> -rwxr-xr-x 1 root root 16280 2010-05-27 01:58 /usr/bin/gccbug-4.1
>
> $ apt-cache policy gcc
> gcc:
> Installed: 4:4.4.4-1ubuntu2
> Candidate: 4:4.4.4-1ubuntu2
> Version table:
> *** 4:4.4.4-1ubuntu2 0
> 500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
> 100 /var/lib/dpkg/status
It's linked to the correct gcc-4.4 but gcc-4.4 has zero length.
--
Linux Home Automation Neil Cherry ncherry at linuxha.com
http://www.linuxha.com/ Main site
http://linuxha.blogspot.com/ My HA Blog
Author of: Linux Smart Homes For Dummies
More information about the ubuntu-users
mailing list