Executing binary: `GLIBCXX_3.4.11' not found Executing binary: `GLIBCXX_3.4.11' not found unix unix

Executing binary: `GLIBCXX_3.4.11' not found


If you've got the correct version of libstdc++.so.6 installed elsewhere (e.g. in your home directory), you can either set LD_LIBRARY_PATH or use LD_PRELOAD, seeWhat is the LD_PRELOAD trick?


It would help if you tell what OS you are running. If it is Solaris, you might want to try setting LD_NOVERSION to tell the runtime linker to ignore the shared library versions.

export LD_NOVERSION=1


The libstdc++ FAQ answers your original question: http://gcc.gnu.org/onlinedocs/libstdc++/faq.html#faq.how_to_set_paths

For the update, that shouldn't happen. The newer libstdc++.so thaqt should be found in your LD_LIBRARY_PATH provides all the symbols of the older one. Maybe /var/scratch/user/local/lib/libopencv_features2d.so.2.2 was linked to an absolute path, not to the SONAME libstdc++.so.6, you could check that by running:

ldd /var/scratch/user/local/lib/libopencv_features2d.so.2.2