Centos安装kaldi步骤

https://blog.csdn.net/qq_30262201/article/details/108668163?ops_request_misc=&request_id=&biz_id=102&utm_term=centOS%E7%8E%AF%E5%A2%83%E4%B8%8BKaldi%E5%AE%89%E8%A3%85%E6%AD%A5%E9%AA%A4&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-1-108668163.142^v42^pc_rank_34_2,185^v2^control&spm=1018.2226.3001.4187

 

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

posted on 2022-08-25 21:21  独上兰舟1  阅读(201)  评论(0编辑  收藏  举报