"Bill Cunningham" <billcun@xxxxxxxxxxxxxx> writes: > I have 322 versions or gcc and g++ installed along with their > development libraries. gcc compiles fine and I have a working 461 C > compiler. g++ not so much. I get this error when I try to run an > executable. > > ./a: error while loading shared libraries: libstdc++.so.6: cannot open > shared object file: No such file or directory > > The library is there. I don't know why it can't be found. Is the > linker not able to find libstc++.so.6 ? I am using an older linker but > I don't know if 2.21.1 would help I can put it into the system > though. ld.so seems to be working because it can find mpc mpfr and gmp > libraries without me manually having to use the switches. > > Any idea what's wrong? The dynamic linker can't find the library at runtime. man ldconfig. Ian