kermitt2 / grobid

A machine learning software for extracting information from scholarly documents
https://grobid.readthedocs.io
Apache License 2.0
3.61k stars 461 forks source link

grobid v0.7.3 cannot run on centos 7.9 with segmentation fault #1081

Closed sawyerzheng closed 5 months ago

sawyerzheng commented 9 months ago

CentOS 7.9 and grobid v0.7.3

java 8 and java 11 has same problem

libwapiti.so -> libm.so.6 -> libc.so.6 cannot be load correct. Just give a segementation fault

my trail fixing solution:

using grobid v0.6.0 's lib/lin-64 folder to replace the corresponding v0.7.3's can fix the problem.

Is there any problem with my solution and how to fix the v0.7.3 version correctly?

kermitt2 commented 9 months ago

Hello @sawyerzheng !

Thanks for the issue.

Normally libwapiti.so requires glibc version 2.14 or higher (post 2011). I suppose CentOS 7.9 has a lower version of glibc. I must emphasize that CentOS 7 and its glibc versions are outdated as Linux distribution.

How to fix the problem: update to a more recent linux distribution (CentOS 7 is reaching end of life and has security issues) or use the docker image to avoid system dependencies.

lfoppiano commented 5 months ago

@sawyerzheng I'm closing this one, since the mentioned grobid version is already passed. Feel free to reopen with more details.