Re: Using install image to recover wrecked system? CC missing ...

From: Miroslav Lachman <000.fbsd_at_quip.cz>
Date: Sat, 20 Dec 2025 14:21:04 UTC
On 20/12/2025 14:15, A FreeBSD User wrote:
> Hello,
> 
> having wreaked havock over one of my boxes damaging some of the crucial system's binaries but
> with intact /usr/src, /usr/obj, I try to save the install via "make
> installworld|installkernel" via booting off the latest official install image.
> 
> This endevour fails due to missing CC=cc (no suitable cc in the image).
> 
> Is there a way to circumvent this issue using the infrastructure residing in /usr/obj?

If I was in your position, I would only take the base.txz file from 
install media (and kernel.txz if necessary) and extract it to your 
damaged system disk so that I could boot from this system and start 
analyzing what happened and then, if necessary, rebuild/reinstall the 
system from /usr/src.

Kind regards
Miroslav Lachman