Table of Contents
When I tried to install HTK into my lubuntu machine, the following message are shown. Here, I wrote the way how I solved this issue.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
xyz-machine% make all (cd HTKTools && make all) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory '/home/xyz/project/leaja/system/htk/HTKTools' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/xyz/project/leaja/system/htk/HTKTools' (cd HLMTools && make all) \ || case "" in *k*) fail=yes;; *) exit 1;; esac; make[1]: Entering directory '/home/xyz/project/leaja/system/htk/HLMTools' Makefile:77: *** missing separator. Stop. make[1]: Leaving directory '/home/xyz/project/leaja/system/htk/HLMTools' Makefile:111: recipe for target 'hlmtools' failed make: *** [hlmtools] Error 1 |
Envirionment
- HTK 3.4.1
- Ubuntu 15.04
Solution
Open HLMTools/Makefile
and go to line 77. The line is like below.
1 2 3 |
# space indentation mkinstalldir: if [ ! -d $(bindir) -a X_ = X_yes ] ; then mkdir -p $(bindir) ; fi |
Attention
It is “HLMTools/Makefile
, not “HTMTools/Makefile
” or root “Makefile
“.
And change the heading spaces to one tab.
1 2 3 |
# tab indentation mkinstalldir: if [ ! -d $(bindir) -a X_ = X_yes ] ; then mkdir -p $(bindir) ; fi |
Makefile
Makefile doesn’t accept space indentation, only accept tab indentation. And indented line is recognized as command.