How to reinstall gcc

Jeffrey Goldberg jeffrey at goldmark.org
Tue Mar 13 12:12:04 UTC 2007


On Mar 13, 2007, at 4:37 AM, Ivan Voras wrote:

> Jeffrey Goldberg wrote:
>
>> My question is without a functioning gcc, how do a install a  
>> functioning
>> gcc?
>
> It seems to me that the easiest way would be to do a binary
> install/upgrade from the distribution CD. You might even get away with
> copying the relevant files (don't know which... probably binaries and
> libraries) from the live CD part.

Thanks for that.

For some reason (sorry I didn't record the error messages) I got into  
some weird menu loop in sysinstall when I tried to upgrade.  So in  
the end, I just mounted the installation disk, found a directory

    RELEASE-6.2/base

in which there was an install.sh that looked like it would do the  
right thing.  It did the right thing.  The only problem was that I  
forgot to restore my old /etc/passwd before rebooting.  As a  
consequence I couldn't ssh in, and so I had to lug an old monitor  
across the room and clear desk space for it, so that I could log on  
to the console.

Cheers,

-j


-- 
Jeffrey Goldberg                        http://www.goldmark.org/jeff/



More information about the freebsd-questions mailing list