try 在HTK library上运行make
时遇到以下问题:
(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文件工作得很好(只需在其main方法中执行printf("hello!");
).
如果这是一个众所周知的错误,我深表歉意——我对C库的体验仅限于使用make
编译和安装它们.
UPDATE
根据下面接受的答案,我执行了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位库,从而解决了这个问题.