public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Dale <rdalek1967@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: howto recover gcc from another system
Date: Thu, 24 Feb 2011 13:55:34 -0600	[thread overview]
Message-ID: <4D66B7B6.7030307@gmail.com> (raw)
In-Reply-To: <loom.20110224T193343-843@post.gmane.org>

james wrote:
> Dale<rdalek1967<at>  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

:-)  :-)



  reply	other threads:[~2011-02-24 20:25 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-24 16:54 [gentoo-user] howto recover gcc from another system James
2011-02-24 17:42 ` Dale
2011-02-24 18:39   ` [gentoo-user] " james
2011-02-24 19:55     ` Dale [this message]
2011-02-24 18:16 ` [gentoo-user] " Florian Philipp
2011-02-24 19:12   ` [gentoo-user] " James
2011-02-24 19:37   ` james
2011-02-24 19:38 ` [gentoo-user] " Neil Bothwick
2011-02-24 21:29   ` [gentoo-user] " James
2011-02-24 23:23     ` Neil Bothwick
2011-02-25  0:36     ` James
2011-02-25  0:50       ` Dale
2011-02-25  1:29         ` James
2011-02-25  1:59           ` Dale
2011-02-25  8:44             ` Neil Bothwick
2011-02-25  8:43           ` Marc Joliet
2011-02-25  9:23             ` [gentoo-user] FIXED: " James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D66B7B6.7030307@gmail.com \
    --to=rdalek1967@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox