繁体   English   中英

无法从源代码安装 apertium 语言包 - make 命令显示错误

[英]Can't install apertium language packages from source - make command shows errors

我正在尝试从源代码安装 apertium-eng-ita package(可在https://github.com/apertium/apertium-eng-ita获得)。 该系统是 debian 11(我也尝试过新鲜的 ubuntu,得到相同的错误)。 所以我将所有文件下载到我的 /root 目录中(/root/eng-ita 内容来自提供的链接的所有文件)并运行:

./autogen.sh

这在“eng-ita”文件夹中生成了所有必要的文件,包括“Makefile”。 但后来我跑:

制作

并查看如下错误:

apertium-validate-dictionary apertium-eng-ita.eng-ita.dix /bin/bash: apertium-validate-dictionary: command not found make: *** [Makefile:769: eng-ita.autobil.bin] 错误 127

我开始用谷歌搜索(例如,这里有一些信息 - https://wiki.apertium.org/wiki/Installation_troubleshooting )这个 127 错误并找到了一些关于 PATH 的信息,但是我可以把这个 PATH 放在哪里使它工作?

如果您是从源代码安装,您应该首先添加 apt 源代码并安装 apertium-all-dev,这将为您提供make等。参见。 https://wiki.apertium.org/wiki/Prerequisites_for_Debian你应该

curl -sS https://apertium.projectjj.com/apt/install-nightly.sh | sudo bash

sudo apt-get -f install locales build-essential automake subversion git pkg-config \
                        gawk libtool apertium-all-dev

(但是,如果您只想使用该对而不是为其开发,则不需要从源代码安装。有最新 git 提交的每晚 debian 包;运行第一个命令后,您可以使用 ZEFE90A8E604A77C840D88 获得 ZEFE90A8E604A7aptF sudo apt install apertium-eng-ita )

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM