赞
踩
cuda9.1不支持g++-7及以上的g++版本,而ubuntu18.04自带的g++版本一般为g++-7.*;所以在安装kaldi之前需要进行g++降级。
- :~$ g++ --version
- g++ (Ubuntu 6.5.0-2ubuntu1~18.04) 6.5.0 20181026
- Copyright (C) 2017 Free Software Foundation, Inc.
- This is free software; see the source for copying conditions. There is NO
- warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
可以看本机的g++版本为6.5.0(这是已经降级后的,cuda9.1可以支持),如果显示为其本版本(>=7.0)就需要降级。
重要:ubuntu18.04(cuda9.1)的用户请注意,我在降级为g++5.5.0版本后安装kaldi不会报错,但是安装后kaldi无法正常使用,后来改为g++6.5.0后就好了。
- $ sudo apt-get install gcc-6
- $ sudo apt-get install g++-6
-
- $ cd /usr/bin
- $ sudo rm gcc
- $ sudo ln -s gcc-6 gcc
- $ sudo rm g+
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。