Closed fungiboletus closed 7 years ago
Thanks for your report. I have to look into this.
For some languages, LT needs (and usually provides itself) native libraries which it accesses via JNA. See https://github.com/languagetool-org/languagetool/blob/master/languagetool-core/src/main/java/org/languagetool/rules/spelling/hunspell/Hunspell.java#L78 ... I'm not sure why it doesn't work in Docker without debugging. Is there no stacktrace?
I have understood the problem. Thanks @danielnaber to point to the provided libhunspell. The libhunspell is build with a gnu-libc. The dockerimage is using alpine and therefore it is using musl-libc.
Two possibilities:
debian:jessie
imagesDepends on #704 what the way to go.
The fastest solution for now is to switch to debian:jessie
.
The problem is fixed @yellowiscool. A docker pull silviof/docker-languagetool
should give you a working image.
Yes I confirm it works great. Thanks for the quick answers and the quick fix.
Hi,
I'm trying your container (thanks by the way), and while it works with
en-GB
, it crashes withfr
.This is the error :
Native library (tmp/jna8006292366090954406.libhunspell-linux-x86-64.so) not found in resource path ([file:/LanguageTool-3.7/languagetool-server.jar])
Any idea ?