如何运行bashscript?

时间:2017-03-03 12:29:48

标签: bash ubuntu hunspell

我从这里下载了源代码:https://github.com/hunspell/hunspell

将其提取到ubuntu中的文件夹

然后按照说明编译

autoreconf -vfi
./configure
make
make install    #if neccesary prefix with sudo
ldconfig        #not needed on windows, on linux sudo may be needed

然后我将我尊重的tr.dic和tr.aff文件复制粘贴到src / tools文件夹中

在终端

中导航

然后我调用wordspell命令,但总是失败

这里是截图

enter image description here

这是wordforms bash脚本:https://github.com/hunspell/hunspell/blob/a6d32ee604e99ffc1919f38664817a2ee1500774/src/tools/wordforms

2 个答案:

答案 0 :(得分:1)

  1. 它是./wordforms./wordforms.sh
  2. 您可能需要使用chmod +x wordforms
  3. 使其可执行

答案 1 :(得分:0)

您可以看到有一个名为 wordforms.sh 的文件。 你可以将其作为

执行
chmod +x  wordforms.sh

然后执行

./wordforms.sh [arguments]

或者,

bash wordforms.sh [arguments]
相关问题