原因:机器没有安装 gcc。
方法:运行下列命令:
运行:
sudo apt-get install build-essential
参考链接:
- C compiler not found, Ubuntu - Stack Overflow
原因:64 位机器的 gcc 只有 64 位的库,用 -m32
参数便会出错。
方法 1:删除 -m32
参数。但是这会导致许多依赖 32 位特性的代码错误。
方法 2**(推荐)**:安装 32 位的库:
sudo apt-get install gcc-multilib
参考链接:
- c - "fatal error: bits/libc-header-start.h: No such file or directory" while compiling HTK - Stack Overflow
- 32 bit - Trouble compiling a 32 bit binary on a 64 bit machine - Ask Ubuntu
建议写成:
make && ./btest