From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1PshkS-0004Qy-F6 for garchives@archives.gentoo.org; Thu, 24 Feb 2011 20:25:19 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E205C1C01A for ; Thu, 24 Feb 2011 20:25:15 +0000 (UTC) Received: from mail-ww0-f53.google.com (mail-ww0-f53.google.com [74.125.82.53]) by pigeon.gentoo.org (Postfix) with ESMTP id A243EE05D9 for ; Thu, 24 Feb 2011 19:54:54 +0000 (UTC) Received: by wwb17 with SMTP id 17so1268048wwb.10 for ; Thu, 24 Feb 2011 11:54:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=ct4wIAAm/p9ipHjI0GykWildz+NjEiF5nU4nx36N/uI=; b=EGSuQv5RlSLERZda7BjGKVCjdgpKNiLG6L9P1wtmAF6vytwnmRQEKLUxZu2MsW+OiE 5r7Bbz+ci26aoPgR8g2cCCSmlobq3xrSAzVj7rAbck/XQ9cHgO0fefstHM10jBovSoKj LL4l8Xpwmrp+6mqglOsh9tDaGpfRg8GEZGWIY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=NSpbuInOAP5m5PoeyQx/HYwb2bs0Ibd230AMOW/AaF+ESLHu8bIA/vw2d0htzFMnu9 IG54nP5jDTa05g2OIzhOIPKIEO2o5sWvlDX+j5ykIvtv5t4/xWxcpFYpUR5vJ6IwtSwz b6DiWtvdbpz4wpTJ8nriZGUvOh2h4ABWq/IUo= Received: by 10.227.132.84 with SMTP id a20mr1265696wbt.56.1298577293591; Thu, 24 Feb 2011 11:54:53 -0800 (PST) Received: from [192.168.2.5] (adsl-0-93-174.jan.bellsouth.net [65.0.93.174]) by mx.google.com with ESMTPS id n1sm2878364weq.31.2011.02.24.11.54.52 (version=SSLv3 cipher=OTHER); Thu, 24 Feb 2011 11:54:53 -0800 (PST) Message-ID: <4D66B7B6.7030307@gmail.com> Date: Thu, 24 Feb 2011 13:55:34 -0600 From: Dale User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110217 Gentoo/2.0.11 SeaMonkey/2.0.11 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: howto recover gcc from another system References: <4D669874.9070308@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 784ca9df25176eeb2fcc67d380a5d985 james wrote: > Dale gmail.com> writes: > > > >>> I lost the only copy of gcc on the system.... >>> > >> I would be glad to email you the binary from mine if it would help. >> > Dale, > > I have several system to copy from (thanks anyway). > Is that all I have to do, just copy over the binary? > > then rebuild gcc via the local ebuild package? > (using the copied over binary) that's all? > > locate gcc (just a snippet) > > /usr/x86_64-pc-linux-gnu/gcc-bin > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 > /usr/x86_64-pc-linux-gnu/gcc-bin/4.3.4 > /usr/x86_64-pc-linux-gnu/gcc-bin/4.4.4 > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/c++ > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/cpp > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/g++ > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gcc > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gccbug > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gcov > /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2/gfortran > > > So copy over > /usr/x86_64-pc-linux-gnu/gcc-bin > to the same location only? > > Copy over all of them? > > If I recall correctly, you put the binary in /usr/portage/packages/sys-devel/ and then emerge -Ka =sys-devel/gcc-4.4.4-r2 and it should just unpack and install gcc. I have done this before but I was using my own binary that portage made sure was put in the right place. This also assumes you are using the portage defaults as to the location of the portage directory and such. Mine looks like this: root@fireball / # emerge -Ka =sys-devel/gcc-4.4.4-r2 These are the packages that would be merged, in order: Calculating dependencies... done! [binary R ] sys-devel/gcc-4.4.4-r2 Would you like to merge these packages? [Yes/No] Note it says binary? If it says something else, then there may be a problem. It's been a while but I think all that is right. Dale :-) :-)