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

Tokenizers maven dependency fails to compile on CentOS 7 #1873

Closed
priyadarshi9 opened this issue Aug 5, 2022 · 6 comments
Closed

Tokenizers maven dependency fails to compile on CentOS 7 #1873

priyadarshi9 opened this issue Aug 5, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@priyadarshi9
Copy link

Description

I am using the tokenizers dependency in my project.

<dependency>
	<groupId>ai.djl.huggingface</groupId>
	<artifactId>tokenizers</artifactId>
	<version>0.18.0</version>
</dependency>

The compilation is failing with the following error:

Caused by: java.lang.UnsatisfiedLinkError: /root/.djl.ai/tokenizers/0.12.0-0.18.0-linux-x86_64/libtokenizers.so: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /root/.djl.ai/tokenizers/0.12.0-0.18.0-linux-x86_64/libtokenizers.so)

Expected Behavior

The compilation should proceed successfully without any such errors.

Error Message

Caused by: java.lang.UnsatisfiedLinkError: /root/.djl.ai/tokenizers/0.12.0-0.18.0-linux-x86_64/libtokenizers.so: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /root/.djl.ai/tokenizers/0.12.0-0.18.0-linux-x86_64/libtokenizers.so)

I ran this command to check the GLIBC version on the system and it threw out following:

(base) [root@deep02 lib64]# ldd --version

ldd (GNU libc) 2.17
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.
Written by Roland McGrath and Ulrich Drepper.

What can I do to fix this error? Please help with some suggestions.

@priyadarshi9 priyadarshi9 added the bug Something isn't working label Aug 5, 2022
@frankfliu
Copy link
Contributor

@priyadarshi9
I updated our CI to build tokenizer on centos 7, see: #1874

once this PR is merged, you can try our 0.19.0-SNAPSHOT build.

Please make sure clean up your local cache folder:

rm -rf ~/.djl.ai/tokenizer

@priyadarshi9
Copy link
Author

Hey @frankfliu , Thank you for a quick response. I could not find 0.19.0-SNAPSHOT version in maven repository. Could you please tell me how can I get this version?

@frankfliu
Copy link
Contributor

frankfliu commented Aug 6, 2022

You need add snapshot repo, you can find document from here

You can also see our example: https://github.com/deepjavalibrary/djl/blob/master/examples/pom.xml#L17-L22

@priyadarshi9
Copy link
Author

Thanks, I could get the SNAPSHOT version now. Will try building on CentOS 7.

@frankfliu
Copy link
Contributor

the nightly build is not started yet. Please wait for 2 hours and try again

@priyadarshi9
Copy link
Author

Sure, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants