Centos安装kaldi步骤
Centos安装kaldi步骤
安装环境
CentOS Linux release 7.2.1511
Python 3.6.6
安装前准备
Python安装:https://www.cnblogs.com/wwzd/p/14244854.html
GCC升级:https://blog.csdn.net/weixin_42090356/article/details/90678158
安装步骤
1、下载kaldi
安装git
yum install -y git
1
拉取kaldi源码
cd /data/software
git clone https://github.com/kaldi-asr/kaldi.git kaldi-trunk --origin golden
1
2
2、依赖安装
yum install gcc-c++
yum install patch
yum install automake
yum install autoconf
yum install zlib zlib-devel
yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel
1
2
3
4
5
6
3、编译安装
进入kaldi-trunk的tools目录下
cd /data/software/kaldi-trunk/tools
1
检查依赖是否都安装完毕,根据指示安装缺失的包,直至提示extras/check_dependencies.sh: all OK.
extras/check_dependencies.sh
1
编译
make
# make -j 4
1
2
进入src目录下进行./configure配置
cd /data/software/kaldi-trunk/src
./configure
1
2
编译
make
# make -j 4
1
2
4、可能碰到的问题解决
1、安装gcc,配置时缺少依赖
## configure: error: Building GCC requires GMP 4.2+, MPFR 2.4.0+ and MPC 0.8.0+.
方案:https://my.oschina.net/u/4361176/blog/3611708
2、gcc编译库的编译器和编译当前程序的编译器版本不一样的问题
## ImportError: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20‘ not found
方案:https://blog.csdn.net/qq_40092110/article/details/111212126
————————————————
版权声明:本文为CSDN博主「gggggao」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/gggggao/article/details/122396600