Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/lib64/libc.so.6: version `GLIBC_2.18' not found Serverless #12

Closed
1pavanb opened this issue Nov 21, 2020 · 3 comments
Closed

/lib64/libc.so.6: version `GLIBC_2.18' not found Serverless #12

1pavanb opened this issue Nov 21, 2020 · 3 comments

Comments

@1pavanb
Copy link

1pavanb commented Nov 21, 2020

Unable to import module 'handler': /lib64/libc.so.6: version `GLIBC_2.18' not found (required by /var/task/minify_html.cpython-36m-x86_64-linux-gnu.so)

I'm running an Aws lambda function using serverless with DockerizePip=True

A quick search in google didn't fetch me any known fixes.

edit:
I've stopped using this, can't fix it.

@wilsonzlin
Copy link
Owner

wilsonzlin commented Jan 7, 2021

It sounds like the GNU C library is missing. It might be located in a different place; try doing a root file search and updating LD_LIBRARY_PATH. If it's not installed, you'll probably need to install it. A cursory Google search resulted in very similar situations and potential solutions (note I haven't tested them myself):

https://bitsanddragons.wordpress.com/2018/04/11/importerror-lib64-libc-so-6-version-glibc_2-18-not-found-on-centos-7/
https://stackoverflow.com/questions/33655731/error-while-importing-tensorflow-in-python-2-7-in-ubuntu-12-04-glibc-2-17-not

If you need further help, provide more details such as the environment, how it was installed, Python version and path, etc.

@1pavanb
Copy link
Author

1pavanb commented Jan 27, 2021

thanks for the help @wilsonzlin
I'm too lazy to continue with this issue.

I'm too unfamiliar with gnu c stuff.
I was using this minifier along with another one. It was working really fine outside of Aws lambda fn.
Although it was useful to optimize the email further, I'm happy without this for now.

@nwparker
Copy link

For anyone having this on AWS (probably applies to Vercel too), then this issue is relevant pertaining to the included glibc version:
aws/aws-lambda-base-images#59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants