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 <[email protected]> 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).