Alec Teal Alec Teal - 9 months ago 76
Linux Question

How to fix: [program name] /usr/lib/x86_64-linux-gnu/ version CXXABI_1.3.8' not found (required by [program name])

I recently asked for help No idea as to: `/usr/lib/x86_64-linux-gnu/ version `CXXABI_1.3.8' not found` and it got downvoted and closed (I don't know why)

It turns out that "make install" - the make target that installs and implies the target "install-target-libstdc++v3" doesn't actually mean you're ready to go.

I've been stuck for a while wondering what I was doing wrong because I assumed that such a make target would do that for me.

I hope this answer helps at least one other person.


For all those stuck with a similar problem, run the following:


When you compile and install GCC it does put the libraries here but that's it. As the FAQs say ( ) you need to add it.

I assumed "How do I insure that the dynamically linked library will be found? " meant "how do I make sure it is always found" not "it wont be found, you need to do this"

For those who don't bother setting a prefix, it is /usr/local/lib64

You can find this mentioned briefly when you install gcc if you read the make output:

Libraries have been installed in:
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and manual pages. 

Grr that was simple! Also "if you ever happen to want to link against the installed libraries" - seriously?