Ask Your Question
0

Import Error: `GLIBC_2.15' not found

asked 2014-03-26 12:47:49 -0600

dmac31 gravatar image

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-11-26 16:47:27 -0600

thierrypin gravatar image

I just had the same problem.

I copied /lib/x86_64-linux-gnu/libm.so.6 into /home/username/anaconda/bin/../lib/libm.so.6.

Of course I had a backup of the original file. It worked fine for me.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-03-26 12:47:49 -0600

Seen: 5,272 times

Last updated: Nov 26 '14