quic / aimet

AIMET is a library that provides advanced quantization and compression techniques for trained neural network models.
https://quic.github.io/aimet-pages/index.html
Other
2.09k stars 374 forks source link

GLIBC_2.27 not found #752

Closed leo19850812 closed 1 year ago

leo19850812 commented 2 years ago

When I run examples of torch model channel pruning, I got this error. ImportError: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/lib/python3.6/dist-packages/aimet_common/x86_64-linux-gnu/libpymo.so)

I installed aimet of version 1.17.0-cp36-cpu on Ubuntu 16.04 LTS. Why it reported that error?

quic-ssiddego commented 2 years ago

@leo19850812 Thanks for reporting the issue. @quic-bharathr could you please take a look.

quic-bharathr commented 2 years ago

Hi @leo19850812,

Apologies for the delayed reply. It is possible that your glibc installation is incompatible. Could you please verify your glibc version and installation as follows?

$ ldd --version
$ cat `gcc -print-file-name=libc.so`

Also can you please try running it in a Ubuntu 18.04 environment or Docker container. If you want to build a compatible docker image, the instructions are here: https://github.com/quic/aimet/blob/develop/packaging/docker_install.md#docker-information

sunzhe09 commented 2 years ago

@quic-bharathr i met the same problem,ldd show my GLIBC is 2.23

/ GNU ld script Use the shared library, but some functions are only in the static library, so try that secondarily. / OUTPUT_FORMAT(elf64-x86-64) GROUP ( /lib/x86_64-linux-gnu/libc.so.6 /usr/lib/x86_64-linux-gnu/libc_nonshared.a AS_NEEDED ( /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 ) )

quic-mangal commented 1 year ago

Closing this issue due to inactivity. Please re-open it/ create a new issue if you need further help.