Ask Your Question

Revision history [back]

Import Error: `GLIBC_2.15' not found

I received the subject line error after entering 'import cv2' into my Python console. The exact error I receive is:

ImportError: /home/username/anaconda/bin/../lib/libm.so.6: version `GLIBC_2.15' not found (required by /usr/local/lib/libx264.so.142)

I am running Ubuntu 12.04.4 LTS 64 bit and I am using Anaconda 64-bit for my Python environment. I built OpenCV from source using the instructions on this website:

https://help.ubuntu.com/community/OpenCV

The program successfully built without errors. When I run ldd -v cv2.so in the terminal, I get the following output:

./cv2.so:
    libm.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libm.so.6
    libgcc_s.so.1 (GCC_3.0) => /lib/x86_64-linux-gnu/libgcc_s.so.1
    libpthread.so.0 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libpthread.so.0
    libstdc++.so.6 (CXXABI_1.3) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    libstdc++.so.6 (GLIBCXX_3.4) => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
    libc.so.6 (GLIBC_2.4) => /lib/x86_64-linux-gnu/libc.so.6
    libc.so.6 (GLIBC_2.14) => /lib/x86_64-linux-gnu/libc.so.6
    libc.so.6 (GLIBC_2.2.5) => /lib/x86_64-linux-gnu/libc.so.6
    libc.so.6 (GLIBC_2.3.4) => /lib/x86_64-linux-gnu/libc.so.6

........

Also, when I type /lib/x86_64-linux-gnu/libc.so.6 --version in the terminal, I get the following output:

GNU C Library (Ubuntu EGLIBC 2.15-0ubuntu10.5) stable release version 2.15, by Roland McGrath et al. Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Compiled by GNU CC version 4.6.3. Compiled on a Linux 3.2.50 system on 2013-09-30. Available extensions: crypt add-on version 2.1 by Michael Glad and others GNU Libidn by Simon Josefsson Native POSIX Threads Library by Ulrich Drepper et al BIND-8.2.3-T5B libc ABIs: UNIQUE IFUNC For bug reporting instructions, please see: http://www.debian.org/Bugs/.

Finally, libm.so.6 symbolically links to another file libm-2.15.so

It seems as though everything is properly linked and that I do, in fact, have the correct libc version. Any suggestions to get this working would be greatly appreciated.