Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error finding kaldi files. #194

Closed
dhuv opened this issue Jul 20, 2018 · 5 comments
Closed

Error finding kaldi files. #194

dhuv opened this issue Jul 20, 2018 · 5 comments

Comments

@dhuv
Copy link

dhuv commented Jul 20, 2018

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
Copy link

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.

make clean

make clean

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

@dhuv
Copy link
Author

dhuv commented Jul 25, 2018

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.

@dhuv dhuv closed this as completed Jul 25, 2018
@deybhayden
Copy link

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
Copy link

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

@wubowen416
Copy link

wubowen416 commented Sep 6, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants