lowerquality / gentle

gentle forced aligner
https://lowerquality.com/gentle/
MIT License
1.45k stars 295 forks source link

Error finding kaldi files. #194

Closed dhuv closed 6 years ago

dhuv commented 6 years ago

When I run install.sh on Linux, it eventually stops at this error.

Makefile:5: kaldi/src/kaldi.mk: No such file or directory Not building with cuda!!! make: *** No rule to make target 'kaldi/src/kaldi.mk'. Stop.

the ext/kaldi/src direct has a bunch of other things but is indeed missing kaldi.mk file.

Merik-VT commented 6 years ago

Hi, I'm also meet this issue, later, I try to build step by step follow commands in install.sh and I found this two lines cause the problem.

https://github.com/lowerquality/gentle/blob/893e09b14eabff3a6ec2ff87db0499bc3fd2a213/ext/install_kaldi.sh#L5

https://github.com/lowerquality/gentle/blob/893e09b14eabff3a6ec2ff87db0499bc3fd2a213/ext/install_kaldi.sh#L9

When I skip these two commands (in clean build), it works...

dhuv commented 6 years ago

The problem I ran into here were 2 things.

  1. OpenFST (Change the link in gentle/ext/kaldi/tools/Makefile to be www.openfst.org instead of openfst.cs.nyu.edu)
  2. OpenBLAS (apt-get install libopenblas-dev libopenblas-base, then "./configure --openblas-root=/usr")

These problem are in the Kaldi repo so I will request changes to be made there.

deybhayden commented 6 years ago

Looks like these changes were indeed fixed in Kaldi - but the commit in the submodule of this project is out of date with those fixes. Is it possible to get a commit bump in the kaldi submodule?

duany049 commented 5 years ago

Build kaldi need package gfortran And I use command "sudo apt install gfortran" then i have kaldi.mk file

wubowen416 commented 2 years ago

Encounted the same error but none of the above works. I chose to install kaldi following kaldi's installation guid and it worked. Here is the procedure, you should first execute ./install.sh in gentle root and see the error, then go through steps below:

  1. cd ext/kaldi/tools
  2. sudo extras/check_denpendicies.sh: Check dependencies. Refer to INSTALL in this directory for details.
  3. sudo make clean: Follow gentle install_kaldi.sh guide.
  4. sudo make: Follow kaldi installation guide.
  5. sudo extras/install_openblas.sh: Follow gentle install_kaldi.sh. I executed sudo apt-get install python because I got the error: extras/install_openblas.sh: line 27: python: command not found.
  6. cd ../src
  7. sudo ./configure --static --static-math=yes --static-fst=yes --use-cuda=no --openblas-root=../tools/OpenBLAS/install: Follow gentle install_kaldi.sh guide.
  8. sudo make depend -j 8: Follow kaldi installation guide. Refer to INSTALL in this directory for details.
  9. sudo make -j 8: Follow kaldi installation guide.
  10. cd ../../..: Go back to gentle root.
  11. sudo ./install_models.sh: Follow gentle install.sh guide.
  12. cd ext
  13. sudo make depend: Follow gentle install.sh guide.
  14. sudo make: Follow gentle install.sh guide. The installation of gentle should have finished at this step.
  15. cd ../..: Back to project root.

Just in case someone else runs into the same error.