Kaldi toolkit Installation Error on Ubuntu 16.04

你离开我真会死。 提交于 2019-12-08 06:22:24

Srinivas

I am also using ubuntu 16.04 LTS and I would suggest you to take a look into this website and follow step by step procedure. I think it will solve your problem.

http://jrmeyer.github.io/kaldi/2016/01/26/Installing-Kaldi.html

I solved it using g++-5. Ubuntu 16.04 by default uses g++-5 for pre-installed packages and when I try to compile Kaldi with g++-4.9 and link with Ubuntu packages that used g++-5, linker caused undefined references. I was facing similar issue with other libraries as well

Usama Wajhi

To solve any such errors, I've always followed these steps:

  • use g++-4.8 to compile kaldi source.
  • add shared flag to your configure command e.g. CXX=g++-4.8 ./configure --shared
  • before making in src directory also make the dependencies as well e.g. sudo make depend CXX=g++-4.8
  • use root privileges while making and also add g++-4.8 directive to your command as well e.g. sudo make CXX=g++-4.8
  • after that compile the online extensions using sudo make ext CXX=g++-4.8

hopefully this will solve your problems.

You can indeed use g++-5 to compile kaldi. It will not support cuda then, as ubuntu 16.04 ships with cuda 7.5 which is incomptatible with gcc 5.

To build with support of CUDA from ubuntu 16.04 :

sudo apt-get install nvidia-cuda-dev nvidia-cuda-toolkit libcupti-dev g++-4.8
cd tools; make CXX=g++-4.8
cd src; CXX=g++-4.8  ./configure --shared && make-j8
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!