How do I reinstall gcc/g++?
Neil Cherry
ncherry at linuxha.com
Sun Feb 20 01:37:20 UTC 2011
On 02/16/2011 04:11 PM, NoOp wrote:
> On 02/16/2011 12:24 PM, MR ZenWiz wrote:
>> On Wed, Feb 16, 2011 at 12:04 PM, NoOp <glgxg at sbcglobal.net> 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
>>>>
>> :
>>> Looks to me like it's linked to the proper file: /urs/bin/gcc-4-4. Or am
>>> I misunderstanding?
>>>
>>
>> I think you missed an important detail - size of his gcc-4.4 is 0.
>>
>
> I did indeed - thanks :-)
>
> @Neil:
>
> $ apt-cache policy gcc-4.4
> gcc-4.4:
> Installed: 4.4.4-14ubuntu5
> Candidate: 4.4.4-14ubuntu5
> Version table:
> *** 4.4.4-14ubuntu5 0
> 500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
> 100 /var/lib/dpkg/status
>
>
> You said you reinstalled; did you try?
>
> $ sudo apt-get install --reinstall gcc-4.4
>
> You may have to also reinstall 'gcc-4.4-base' - but I think reinstalling
> gcc-4-4 should pull in base.
First I want to thank everyone who helped me, big THANKS. :-)
It's now working and here's how I fixed it:
I grabbed the deb files for cpp, gcc and g++ and reinstalled them. No amount
of reinstall worked. Ubuntu likes to use a lot or indirection (links to things)
and most of the packages are basically empty except for the links. I really
don't appreciate the level of obfuscation this causes. It's very annoying.
> Added note, Neil: please do not cc me on your replies - I read the list
> thanks & really don't need to have an extra copy.
Sorry about that, too much time with MS LookOut (at work) and exhaustion
make for use of bad habits (respond all).
--
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