HTK 32 位问题 -> apt-get install gcc-multilib -> "Package 'gcc-multilib' has no installation ca



我正在尝试安装 HTK。我尝试了./configure,并在make all上收到错误:

cd HTKLib && make HTKLib.a) 
|| case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory '/home/pranay/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,
from HGraf.c:54:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
27 | #include <bits/libc-header-start.h>

所以我搜索了这个问题,并在编译HTK时发现了"致命错误:bits/libc-header-start.h:没有这样的文件或目录"。这导致了以下解决方案sudo apt-get install gcc-multilib。但是,这带来了另一个问题:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package gcc-multilib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'gcc-multilib' has no installation candidate

在这一点之后,我无法找到合适的解决方案。我最初可以尝试从文件中删除 -m32,但显然这不是正确的方法,可能会导致更多问题。

我在/etc/apt/sources.list 中添加以下行来解决这个问题:

deb http://ftp.de.debian.org/debian sid main

之后,使用 apt 安装 gcc-multilib

#apt install gcc-multilib
sudo apt install aptitude
sudo aptitude -y install gcc-multilib

在 Ubuntu 18.04 和 gcc 版本 7.5 上工作

最新更新