libstdc ++。so.6:找不到版本`CXXABI_1.3.8'(bin / opencv_test_core需要)?

时间:2017-03-22 14:28:45

标签: gcc

我已安装OpenCV,但在CMakemake install期间未收到错误。但是,当我通过运行一些测试任务来测试安装时,我收到了这些错误。

bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by bin/opencv_test_core)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by bin/opencv_test_core)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by bin/opencv_test_core)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by bin/opencv_test_core)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_core.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_core.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_core.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_core.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_imgcodecs.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_imgcodecs.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_imgcodecs.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_imgcodecs.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_videoio.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_imgproc.so.3.2)
bin/opencv_test_core: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /data/projects/st/software/opencv-3.2.0/build/lib/libopencv_imgproc.so.3.2)

经过一些谷歌搜索后,我找到this solution,但我安装gcc-4.9并不方便,因为我不是根。对我来说,手动将软件包安装到我的本地目录真是太痛苦了......

我安装了gcc-6.4(当我which gcc时,我看到了它的目录)。我可以以某种方式配置我的系统以使其与gcc-6.4一起使用(例如,将其添加到LD_LIBRARY_PATH吗?我不确定是否是Linux新手)?或者我是否必须安装gcc-6.4

0 个答案:

没有答案