You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

配置Julius语音识别工具时C编译器无法生成可执行文件的问题求助

配置Julius语音识别工具时C编译器无法生成可执行文件的问题求助

大家好,我知道这个问题在论坛里可能已经被问过很多次了,但因为我的使用场景有点特殊,还是想再请教一下各位。

我正在Windows 10的电脑上尝试安装Julius语音识别工具,首先我在WSL2里装了Ubuntu系统,接着安装了所有必备的编译依赖库,然后把Julius的Git仓库克隆到了/mnt/c/Users/hp/source/repos/julius目录下。进入这个目录后,我执行了配置命令:

./configure --enable-words-int

但终端却返回了如下错误信息:

root@LAPTOP-8U352SVT:/mnt/c/Users/hp/source/repos/julius# ./configure --enable-words-int

checking build system type... x86_64-unknown-linux-gnu

checking host system type... x86_64-unknown-linux-gnu

checking host specific optimization flag... support/cflags.x86_64-unknown-linux-gnu

checking for gcc... gcc

checking whether the C compiler works... no

configure: error: in '/mnt/c/Users/hp/source/repos/julius':

configure: error: C compiler cannot create executables

See `config.log' for more details

我查看了config.log文件,里面的关键错误内容如下:

configure:2057: gcc -O6 -fomit-frame-pointer
conftest.c  >&5
gcc: error: unrecognized command-line option '-fomit-frame-pointer
'; did you mean '-fomit-frame-pointer'?

看起来问题出在编译选项-fomit-frame-pointer后面多了一个换行符,导致gcc无法正确识别这个参数。我已经尝试过重新安装gcc和build-essential,但问题还是没有解决。有没有大佬能指导我该怎么处理这个问题?谢谢大家!

备注:内容来源于stack exchange,提问作者AWE JHA

火山引擎 最新活动