我正在尝试从源代码安装apertium软件包(可在https://github.com/apertium/apertium-eng-ita上获得)。该系统是debian 11 (我也尝试了新鲜的ubuntu,得到同样的错误)。因此,我将所有文件下载到我的/root目录(/root/eng目录中包含了提供的链接中的所有文件)并运行:
./autogen.sh
这会在“eng”文件夹中生成所有必要的文件,包括"Makefile“。但我跑了:
制作
并看到以下错误:
验证-字典apertium-Eng-ita.eng /bin/bash:验证-字典:命令不被找到:* Makefile:769: eng-ita.autobil.bin错误127
我开始搜索这个127个错误(例如,这里有一些信息- https://wiki.apertium.org/wiki/Installation_troubleshooting),并找到了一些关于路径的信息,但是我可以在哪里设置这个路径来使它工作呢?
发布于 2021-11-17 09:21:28
如果您是从源代码安装,您应该首先添加apt源代码,并安装apertium,这将为您提供make等Cf。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包;运行第一个命令之后,您可以使用sudo apt install apertium-eng-ita获得该包)
https://stackoverflow.com/questions/70001467
复制相似问题