g++ missing shared objects
I suspect that this isn't difficult, but I'm stumped. Sorry if it is too easy.
I ran c++ programs on redhat 7.2 just fine, when I move to RH9, I have problems at runtime. I get:
a.out: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
I've just installed gcc 3.4 (compiled and installed from the source). I get a version of 3.4.0 when I do a "gcc --version" and it appeared to install correctly. No special libraries should be required as it is only trying to execute helloworld.cc
I tried to add: /usr/local/lib to /etc/ld.so.conf and ran ldconfig and I've also modified the LD_LIBRARY_PATH
This resulted in the following problem at runtime:
/lib/libgcc_s.so.1: version `GCC_3.3' not found (required by /usr/local/lib/libstdc++.so.6)
I see it's mentioning gcc 3.3.
Any idea how to make the programs run and is the second message a step forward or backward? Should I install gcc from an rpm? I'm out of ideas.