Erro ao instalar a ferramenta htk

0

Quando tento compilar e instalar o HTK, ele produz o seguinte erro:

HTK is now ready to be built.

Type "make all" to build the HTK libraries
and tools.

Then "make install" to install them.

The tools will be installed in /usr/local/bin

Build notes: Language Modelling tools will be
built. HDecode will not be built. You can build
it manually later by running 'make hdecode
install-hdecode'

**************************************************
user@EESBLRP105:~/htk$  make all

(cd HTKLib && make HTKLib.a) \
      || case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/user/htk/HTKLib'
gcc  -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I. -DPHNALG   -c -o HGraf.o HGraf.c
In file included from /usr/include/stdio.h:27:0,
                 from HShell.h:40,
                 from HGraf.c:54:
/usr/include/features.h:374:25: fatal error: sys/cdefs.h: No such file or directory
 #  include <sys/cdefs.h>
                         ^
compilation terminated.
make[1]: *** [HGraf.o] Error 1
make[1]: Leaving directory '/home/user/htk/HTKLib'
make: *** [HTKLib/HTKLib.a] Error 1
    
por KTR 28.02.2018 / 10:46

1 resposta

3

Várias armadilhas ao construir o HTK com, e. Ubuntu 16.04 - amd64. a) O novo caminho. b) O HTK é construído com o gcc -m32: os pré-requisitos de construção do i386 são necessários. Muito mais fácil se o CentOS 6.9 - i386 ou o CentOS 7 - x86_64.

O pacote htk-tools_3.4.1-ubuntu14_i386.deb foi criado no Ubuntu 14.04 - i386, os arquivos são de um build HTK-3.4.1 com o CentOS 7.

Link: link → Fornece / usr / local / bin / {37 ferramentas }.

Ubuntu 16.04 - amd64: Faça o download e instale:

cd Downloads/
sudo gdebi htk-tools_3.4.1-ubuntu14_i386.deb
            // some 32bits dependencies will be installed too
    
por Knud Larsen 28.02.2018 / 17:53