question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tokenizers maven dependency fails to compile on CentOS 7

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
frankfliucommented, Aug 6, 2022

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

1reaction
frankfliucommented, 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation Error - Failed building wheel for tokenizers #2831
I was having the same issue on virtualenv over Mac OS Mojave. Managed to solve it and install Transformers 2.5.1 by manually install...
Read more >
Maven install error: Dependency could not be resolved
It seems like your maven cannot access remote central repository. ... Try disconnecting any company private VPN and try mvn clean build ....
Read more >
Failing the build on dependency analysis warnings
The plugin can then be configured to fail the build if any dependency analysis warnings are encountered by setting the failOnWarning parameter.
Read more >
Package List — Spack 0.20.0.dev0 documentation
Versions: 2.0.1, 2.0.0, 1.9.3, 1.9.2; Build Dependencies: java, maven ... It creates control-flow models of each MPI process and, when a failure occurs, ......
Read more >
Maven Error: Failed to collect dependencies - When trying to ...
It's possible your dependencies are corrupted in your local maven cache, you could try forcing an update of the maven dependency cache -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found