首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装htk工具时出错

安装htk工具时出错
EN

Ask Ubuntu用户
提问于 2018-02-28 09:46:48
回答 1查看 637关注 0票数 0

当我试图编译和安装HTK时,它会产生以下错误:

代码语言:javascript
复制
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
EN

回答 1

Ask Ubuntu用户

回答已采纳

发布于 2018-02-28 16:53:14

在使用Ubuntu16.04- amd64构建HTK时有几个缺陷。( a)新的路径‘s,b) HTK是用gcc -m32构建的:需要i386构建的先决条件。如果CentOS 6.9-i386或CentOS 7- x86_64要容易得多.

htk-tools_3.4.1-ubuntu14_i386.deb包是在Ubuntu14.04- i386上创建的,文件来自HTK-3.4.1与CentOS 7的构建。

链接:https://drive.google.com/file/d/1Di29AvqoRBEJ4haW2nusPT1wMPkE14B1/view?usp=sharing→提供/usr/local/bin/{ 37个工具}。

Ubuntu16.04- amd64 :下载并安装:

代码语言:javascript
复制
cd Downloads/
sudo gdebi htk-tools_3.4.1-ubuntu14_i386.deb
            // some 32bits dependencies will be installed too
票数 3
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/1010581

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档