因為同事工作需要 kaldi ,所以安裝過程有點。。。。在此記錄一下折騰的過程
os:ubuntu 12.04 (amd64)
svn co kaldi-stable
sph2pipe_v2.5.tar.gz:
wget -t 10 -t 3
sph2pipe_v2.5.tar.gz:
wget -t 10 -t 3
位址修改完成後,可以進行 make 了
cd kaldi-stable/tools
出錯了。。。。。由於之前用不到 automake autoconf libtool 工具,在進行到 irstlm 這一步時出錯了。。。安裝剛才提到的三個軟體 automake autoconf libtool
patching file src/lmtable.h
patching file src/interpolate-lm.cpp
touch irstlm/.patched
cd irstlm; \
(./regenerate-makefiles.sh || ./regenerate-makefiles.sh) && \
./configure --prefix `pwd`
calling
calling ...
./regenerate-makefiles.sh: line 52: -i: command not found
aclocal failed
calling
calling ...
./regenerate-makefiles.sh: line 52: -i: command not found
aclocal failed
安裝依賴
aptitude install automake autoconf libtool -y
繼續make。。。。
make clean
make -j4
cd ../src
./configure
make -j4
svn co
root@gpu:~/kaldi-trunk/src# ./configure
configuring ...
checking openfst library in /root/kaldi-trunk/tools/openfst ...
checking openfst library was patched.
backing up kaldi.mk to kaldi.mk.bak
doing os specific configurations ...
on linux: checking for linear algebra header files ...
using atlas as the linear algebra library.
atlas found in /usr/lib
... no libatlas.so in /usr/lib/atlas
... no libatlas.so in /usr/lib/atlas-sse2
... no libatlas.so in /usr/lib/atlas-sse3
... no libatlas.so in /usr/lib64
... no libatlas.so in /usr/lib64/atlas
... no libatlas.so in /usr/lib64/atlas-sse2
... no libatlas.so in /usr/lib64/atlas-sse3
... no libatlas.so in /usr/local/lib
... no libatlas.so in /usr/local/lib/atlas
... no libatlas.so in /usr/local/lib/atlas-sse2
... no libatlas.so in /usr/local/lib/atlas-sse3
... no libatlas.so in /usr/local/lib64
... no libatlas.so in /usr/local/lib64/atlas
... no libatlas.so in /usr/local/lib64/atlas-sse2
... no libatlas.so in /usr/local/lib64/atlas-sse3
... no libatlas.so in /root/kaldi-trunk/src/../tools/atlas/build/install/lib/
... no libatlas.so in /root/kaldi-trunk/tools/atlas/lib
looking for atlas libs in /usr/lib
using library -l/usr/lib -llapack as atlas's clapack library.
using cuda toolkit /usr/local/cuda (nvcc compiler and runtime libraries)
static=[false] speex library not found: you can still build kaldi without speex.
successfully configured for linux [dynamic libraries] with atlaslibs =-l/usr/lib -llapack -lcblas -latlas -lf77blas
exp() time: 0.00276494
expf() time: 0.00307679
*** warning: expf() seems to be slower than exp() on your machine. this is a known bug in old versions of glibc. please consider updating glibc. ***
*** kaldi will be configured to use exp() instead of expf() in base/kaldi-math.h exp() routine for single-precision floats. ***
關於那個gblic的提示,不知道是不是一定要公升級glibc。。。。
Kaldi安裝編譯
git clone kaldi trunk origin goldensudo apt get install git安裝git版本控制軟體。進 tools cd tools tools檔案 執行 extras check dependencies.sh 檢查kaldi需要依賴的庫,在檢查的時候會給...
Kaldi學習手記(一) Kaldi的編譯安裝
安裝git 其中,tools src egs這三個目錄是比較重要的。tools目錄下面全部都是kaldi依賴的包。其中主要有 openfst weighted finite state transducer library,是乙個用來構造有限狀態自動機的庫。我們知道隱馬爾科夫模型就可以看成是乙個有限...
kaldi原始碼分析 零 kaldi的安裝
安裝依賴 sudo apt get update sudo apt get install git sudo apt get install g zlib1g dev automake autoconf libtool subversion sudo apt get install libatlas...