From owner-freebsd-questions@FreeBSD.ORG Mon Dec 4 15:54:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C3FA416A4C8 for ; Mon, 4 Dec 2006 15:54:23 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 314AC43DFE for ; Mon, 4 Dec 2006 15:52:38 +0000 (GMT) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.13.8/8.13.8) with ESMTP id kB4Fr4qr094935 for ; Mon, 4 Dec 2006 08:53:04 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.13.8/8.13.8/Submit) with ESMTP id kB4Fr43X094932; Mon, 4 Dec 2006 08:53:04 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 4 Dec 2006 08:53:04 -0700 (MST) From: Warren Block To: Rachel Florentine In-Reply-To: <20061204130549.29737.qmail@web57807.mail.re3.yahoo.com> Message-ID: <20061204083547.K94861@wonkity.com> References: <20061204130549.29737.qmail@web57807.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (wonkity.com [127.0.0.1]); Mon, 04 Dec 2006 08:53:04 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: Corrupted C Compiler X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Dec 2006 15:54:23 -0000 On Mon, 4 Dec 2006, Rachel Florentine wrote: > I entered the following stupid command: cp -R /* /ad2 thinking that > would copy the contents of my working HD to my new 1/2 teraflop HD > (ad2). What it did was manage to wipe out some very important files > (thank goodness I had up-to-date backups) and it appears to have > corrupted gcc...my C compiler. I deduce this because when I go to > build Zope (as an example) from source I have to run a script > afterwards that repairs the broken C files. (This, strangely, is not > the case if I build Zope from port.) So, my questions for you > programmers more experienced than I, are: > 1) Does my assessment make sense? Is gcc corrupt? No, or the port would not be able to build correctly. That is the main point of the ports system, of course: to correctly build software on FreeBSD. > 2) Whether it is or not, how should I troubleshoot/fix my problem? It > seems to me I should re-install FBSD, but how? An additional feature of the ports system is that it makes deinstalling ported software easy. Since you've installed software without using the port, making sure all of the files and side-effects are removed when deinstalling is much more difficult. My suggestion would be to reinstall FreeBSD from scratch. Do a clean install of FreeBSD, then back it up with dump as shown in the Handbook. In fact, any time a question comes up, check the Handbook first for the preferred way to solve it. Add applications from ports so they'll be installed correctly for FreeBSD and will be easy to update. Make backups with dump as you go, so you can restore to a known-good setup. Once you get a Zope instance installed, make an additional backup of it by copying the Data.fs file somewhere safe. With all that done, you can start experimenting. -Warren Block * Rapid City, South Dakota USA