尝试make
在HTK 库上运行时遇到以下问题:
(cd HTKLib && make HTKLib.a) \
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/william/speech/htk/HTK-3.4.1/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 HShell.h:40:0,
from HGraf.c:54:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
#include <bits/libc-header-start.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
<builtin>: recipe for target 'HGraf.o' failed
make[1]: *** [HGraf.o] Error 1
make[1]: Leaving directory '/home/william/speech/htk/HTK-3.4.1/htk/HTKLib'
Makefile:96: recipe for target 'HTKLib/HTKLib.a' failed
make: *** [HTKLib/HTKLib.a] Error 1
我不确定如何处理这个错误。该libc-header-start.h
文件存在于我的系统上:
$ find /usr -name libc-header-start.h
/usr/include/x86_64-linux-gnu/bits/libc-header-start.h
适当地运行gcc -H -fsyntax-only /usr/include/stdio.h
返回
. /usr/include/x86_64-linux-gnu/bits/libc-header-start.h
.. /usr/include/features.h
... /usr/include/x86_64-linux-gnu/sys/cdefs.h
等等
此外,编译和运行健全性检查 C 文件也可以正常工作(只需printf("hello!");
在其 main 方法中执行)。
如果这是一个众所周知的错误,我深表歉意——我对 C 库的体验仅限于使用make
.
更新
根据下面接受的答案,我执行sudo apt-get install gcc-multilib
以安装缺少的 32 位库。
之后我得到一个类似原因的错误:"/usr/bin/ld: cannot find -lX11" error when installing htk
. 我通过执行sudo apt-get install libx11-dev:i386 libx11-dev
检索丢失的 32 位库解决了这个问题。