public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Mark Knecht <markknecht@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Help, please! I've hosed my gcc.
Date: Tue, 15 Nov 2011 14:48:03 -0800	[thread overview]
Message-ID: <CAK2H+edP-QhW-U-kL2VXJbeiR5ooaEMCz8CUWo9wSYGv9Z_nmw@mail.gmail.com> (raw)
In-Reply-To: <20111115223535.GB22507@acm.acm>

On Tue, Nov 15, 2011 at 2:35 PM, Alan Mackenzie <acm@muc.de> wrote:
> Hi, Mark
>
> On Tue, Nov 15, 2011 at 02:06:32PM -0800, Mark Knecht wrote:
>> On Tue, Nov 15, 2011 at 1:44 PM, Alan Mackenzie <acm@muc.de> wrote:
>
>> > My gcc now fails to work.
>
>> > I upgraded it earlier on (I think) after doing an emerge --sync.  I
>> > can't remember the before/after versions, or even whether I've got both
>> > of them.
>
>> > lipgmp has a lot to do with my problem.  After my last emerge -uND
>> > world, I think libgmp was upgraded.  At any rate the messages on the
>> > screen directed me to
>
>> >    revdep-rebuild --library /usr/libt64/libgmp.so.3
>
>> > , which I did.  They then informed me I could safely delete libgmp.so.3,
>> > which I also did.  :-(
>
>> > Now, when I attempt gcc on the command line, I get the error:
>
>> >    /usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1: error while loading
>> >    shared libraries: libgmp.so.3: cannot open shared object file: No
>> >    such file or directory
>
>> > .  So, is there an easy way for me to recover a working gcc, or do I
>> > have to do something desperate, like reinstalling Gentoo?  :-(
>
>> > Help will be most appreciated.
>
>> > --
>> > Alan Mackenzie (Nuremberg, Germany).
>
>
>
>> gcc-config -l
>
>> and see what's there
>
> Ah - gcc-config.  I did gcc-config -l, and it displayed 2 versions of
> gcc.  Then I did gcc-config --help.  Then I did
>
>    gcc-config x86_64-pc-linux-gnu-4.5.3
>
> , and now gcc is working again, or more precisely the new one is working.
> :-)  Thanks for the tip!
>
> --
> Alan Mackenzie (Nuremberg, Germany).

Happy to help and very glad it worked out.

Cheers,
Mark



  reply	other threads:[~2011-11-15 22:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-15 21:44 [gentoo-user] Help, please! I've hosed my gcc Alan Mackenzie
2011-11-15 22:03 ` covici
2011-11-15 22:06 ` Mark Knecht
2011-11-15 22:35   ` Alan Mackenzie
2011-11-15 22:48     ` Mark Knecht [this message]
2011-11-15 22:06 ` William Kenworthy
2011-11-15 22:13 ` Dale

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=CAK2H+edP-QhW-U-kL2VXJbeiR5ooaEMCz8CUWo9wSYGv9Z_nmw@mail.gmail.com \
    --to=markknecht@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