I would like to install mecab dictionary NEologd in the Docker container, but I cannot resolve the error.

Asked 1 years ago, Updated 1 years ago, 41 views

local environment macOS HighSierra

Docker Environment CentOS

That's it.

Dockerfile is trying to include NEologd installation commands in the Docker container.

The steps are as follows:

Download NEologd from gitclone.

Navigate to the folder where NEologd is located, where

RUN./bin/install-mecab-ipadic-neologd-n-a

You are writing commands.I was able to install it successfully on my local PC, but when I tried to install it in a container with Dockerfile.The following error appears:

Step 63/64: RUN./bin/install-mecab-ipadic-neologd-n-a
 -->Running in bc6b31c0e729
install-mecab-ipadic-NEologd—Start..
install-mecab-ipadic-NEologd—Check the instance of libraries
install-mecab-ipadic-NEologd—find=>ok
install-mecab-ipadic-NEologd — sort=>ok
install-mecab-ipadic-NEologd —head=>ok
install-mecab-ipadic-NEologd —cut=>ok
install-mecab-ipadic-NEologd —egrep=>ok
install-mecab-ipadic-NEologd —mecab=>ok
install-mecab-ipadic-NEologd —mecab-config=>ok
install-mecab-ipadic-NEologd —make=>ok
install-mecab-ipadic-NEologd —curl=>ok
install-mecab-ipadic-NEologd —sed=>ok
install-mecab-ipadic-NEologd—cat=>ok
install-mecab-ipadic-NEologd —diff=>ok
install-mecab-ipadic-NEologd —tar=>ok
install-mecab-ipadic-NEologd —unxz=>ok
install-mecab-ipadic-NEologd —xargs=>ok
install-mecab-ipadic-NEologd — grep=>ok
install-mecab-ipadic-NEologd —iconv=>ok
which —no patch in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/sbin:/usr/bin:/sbin:/bin)
install-mecab-ipadic-NEologd —Patch is not found.
ERROR: Service 'predict-regulation-type' failed to build: The command'/bin/sh-c./bin/install-mecab-ipadic-neologd-n-a' returned anon-zero code:1

I'm struggling because I don't know how to solve it.I would appreciate it if you could give me some advice.
Thank you for your cooperation.

python docker

2022-09-30 10:26

1 Answers

Judging from the error message, patch is not installed.

Debian can be installed as follows:

 sudo apt install patch


2022-09-30 10:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.