qtcreator and glib version is not compatible

System Ubuntu16.04, using the Anaconda.

Due to the need to compile a program, you need to use opencv, then installed directly

conda install opencv

There is a problem as follows

ImportError: /home/pc314/anaconda3/envs/tensorflow/lib/python3.5/site-packages/zmq/backend/cython/../../../../.././libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by /home/pc314/anaconda3/envs/tensorflow/lib/python3.5/site-packages/../../libopencv_objdetect.so.3.3)

The main reason is the compiler version of the program is relatively low, the lack of GLIBCXX_3.4.22, in fact, less libstdc ++. So.6.0.22. Where there is check the existence of this thing,

sudo find / -name 'libstdc++.so*'

Modifying no case there's something exists in the / usr / lib / and / home / pc314 / anaconda3 / envs / tensorflow / lib / many online question about the / usr / lib / under, alone in the / usr / lib / with oh. Because the compiler environment in Anaconda inside. You can run the following command to see what is really missing

strings /home/pc314/anaconda3/envs/tensorflow/lib/libstdc++.so.6 |grep GLIBCXX  


installation

libstdc ++. so.6.0.22 download address, this address is not found, it should be there. Find it troublesome to directly address a csdn inside downloaded to be integrated.

The downloaded file is a .deb file, unzip

    cd Downloads/
    ar -x lib64stdc++6_6.2.0-5ubuntu12_i386.deb

Data.tar.xz get a file, unzip

takes xvJf data.tar.xz

File after extracting the Download / usr / lib64 / inside

cd ./usr/lib64/

Then copied to the destination folder inside

mv libstdc++.so.6.0.22  ~/anaconda3/envs/tensorflow/lib/

Re-establish the connection soft

    cd ~/anaconda3/envs/tensorflow/lib/
    rm libstdc++.so.6
    ln libstdc++.so.6.0.22 libstdc++.so.6

Here is basically completed

reference

http://blog.csdn.net/xiaolong2w/article/details/23915171

http://blog.csdn.net/zhu_charles/article/details/75914060
---------------------
Author: pursuit_zhangyu
Source: CSDN
Original: https: // blog.csdn.net/pursuit_zhangyu/article/details/79450027
Disclaimer: This article is a blogger original article, reproduced, please attach Bowen link!

Guess you like

Origin blog.csdn.net/wojiuguowei/article/details/89518750