error message: 'GLIBCXX_3.4.18' not found (reuqired by /usr/lib64/

When I run yast, the error message has been shown “GLIBCXX_3.4.18 not found (required by /usr/lib64/”
In fact, I can only log in my computer using init 3 not graphical mode.
How do I fix this problem? Thanks for your time.

I have a feeling you may have mixed some repositories - can you take a picture or screenshot (or via ssh to your box) take a copy of;

zypper lr -d

Before this happened, what did you do exactly? Did you install something from or add any repositories?

Yes, I did install some library packages by using yast and I also installed gcc 4.7 from GNU library in a couple of days ago.
I did follow your suggested command and took a picture to show the error message in the below link, which is similar to what I had.

So it’s looking in /usr/local/lib64 instead of /usr/lib64 a result of the gcc install I would guess…

… and it would be a real surprise if that only broke yast and not a lot of other applications linked against libstdc++6 (and having no X should be the least of worries there).

The only way to get that mess cleaned up would be to remove all files installed by that manual gcc installation, starting with the stuff in /usr/local/lib(lib64).


Probably I should remove all files installed by that manual gcc installation. But how to do this safely?