Installing Kaldi-trunk on Debian 9

149 views
Skip to first unread message

Urmas Kirsipuu

unread,
May 16, 2019, 3:34:16 PM5/16/19
to kaldi-help
Hi!

Can i install kaldi-trunk on Debian 9.9 ( 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux )

The g++ (Debian 6.3.0-18+deb9u1) 6.3.0 20170516 is not supported? How i complite it?

Daniel Povey

unread,
May 16, 2019, 3:37:35 PM5/16/19
to kaldi-help
Why do you think it's not supported?  If you get some kind of error message from the installation scripts, let us know what that is.
It could be that your CUDA toolkit version is too old for that version of g++.


--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kaldi-help/63598b80-ae0a-4f6b-b628-910a23e42a7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jan Trmal

unread,
May 16, 2019, 3:40:06 PM5/16/19
to kaldi...@googlegroups.com
Please tell us what error it produces or what makes you asking that question?
Y.

--

Urmas Kirsipuu

unread,
May 16, 2019, 4:27:03 PM5/16/19
to kaldi-help


neljapäev, 16. mai 2019 22:40.06 UTC+3 kirjutas Yenda:
Please tell us what error it produces or what makes you asking that question?


make[3]: Leaving directory '/home/speech/tools/kaldi-trunk/tools/sctk-2.4.10/src/asclite'
(cd sclite; make install)
make[3]: Entering directory '/home/speech/tools/kaldi-trunk/tools/sctk-2.4.10/src/sclite'
/bin/sh: 5: Syntax error: end of file unexpected (expecting "done")
makefile:171: recipe for target 'testinstalldirs' failed
make[3]: [testinstalldirs] Error 2 (ignored)
for p in sclite sc_stats rover sctkUnit; do \
  /usr/bin/install $p -prefix/home/speech/tools/kaldi-trunk/tools/sctk/bin/$p; \
done
/usr/bin/install: invalid option -- 'r'
Lisainfo saamiseks proovige '/usr/bin/install --help'.
/usr/bin/install: invalid option -- 'r'
Lisainfo saamiseks proovige '/usr/bin/install --help'.
/usr/bin/install: invalid option -- 'r'
Lisainfo saamiseks proovige '/usr/bin/install --help'.
/usr/bin/install: invalid option -- 'r'
Lisainfo saamiseks proovige '/usr/bin/install --help'.
makefile:160: recipe for target 'install' failed
make[3]: *** [install] Error 1
make[3]: Leaving directory '/home/speech/tools/kaldi-trunk/tools/sctk-2.4.10/src/sclite'
makefile:12: recipe for target 'install' failed
make[2]: *** [install] Error 2 

Jan Trmal

unread,
May 16, 2019, 4:44:32 PM5/16/19
to kaldi-help
that is related to sctk -- that package was never causing this kind of problem (and I see it for the first time).
Check what version of coreutils you have and try to reinstall it.
Also make sure you didn't edit anything in tools
y.

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.

Urmas Kirsipuu

unread,
May 16, 2019, 4:53:36 PM5/16/19
to kaldi-help


neljapäev, 16. mai 2019 23:44.32 UTC+3 kirjutas Yenda:
that is related to sctk -- that package was never causing this kind of problem (and I see it for the first time).
Check what version of coreutils you have and try to reinstall it.
Also make sure you didn't edit anything in tools


Version: 8.26-3
Reinstalled, same error.

If i tried to newer version, then i got errors about missing directories, the reason was makefile
prefix = -prefix/home/speech/tools/kaldi-trunk/tools/sctk

If i changet it to real dir, the installation finsihed. 

Jan Trmal

unread,
May 16, 2019, 5:03:49 PM5/16/19
to kaldi-help
sorry, what makefile we are talking about -- sctk's makefile nor tools/Makefile does not contain the line.
y.

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.

Urmas Kirsipuu

unread,
May 17, 2019, 3:44:41 AM5/17/19
to kaldi-help


reede, 17. mai 2019 0:03.49 UTC+3 kirjutas Yenda:
sorry, what makefile we are talking about -- sctk's makefile nor tools/Makefile does not contain the line.


sctk/src/sclite/makefile 

Jan Trmal

unread,
May 17, 2019, 4:30:08 AM5/17/19
to kaldi-help
hm, I don't know what went wrong on your system, but your fix was the proper one


--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.

Urmas Kirsipuu

unread,
May 17, 2019, 3:11:33 PM5/17/19
to kaldi-help


reede, 17. mai 2019 11:30.08 UTC+3 kirjutas Yenda:
hm, I don't know what went wrong on your system, but your fix was the proper one



But i still cannot install Kaldi. 

Jan Trmal

unread,
May 17, 2019, 3:24:07 PM5/17/19
to kaldi...@googlegroups.com
If you expect anything constructive from us, you will have start by providing information that  can be used to diagnose the issue.
Y.

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.

Urmas Kirsipuu

unread,
May 18, 2019, 4:26:28 AM5/18/19
to kaldi-help


reede, 17. mai 2019 22:24.07 UTC+3 kirjutas Yenda:
If you expect anything constructive from us, you will have start by providing information that  can be used to diagnose the issue.


If i run make (kaldi-trunk/tools) then it makes sclite incorrect path in config file

s%@CFLAGS@%-Os%g

s%@CPPFLAGS@%%g

s%@CXXFLAGS@%%g

s%@DEFS@% -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 %g

s%@LDFLAGS@%%g

s%@LIBS@%-lm %g

s%@exec_prefix@%${prefix}%g

s%@prefix@%-prefix/home/speech/tools/kaldi-trunk/tools/sctk%g

s%@program_transform_name@%s,x,x,%g

s%@CC@%gcc%g

s%@SET_MAKE@%%g

s%@CPP@%gcc -E%g

s%@INSTALL@%/usr/bin/install%g

s%@DIFF@%%g

s%@NDIFF@%%g

s%@SLM_DEFS@%%g

s%@SLM_TARGETS@%%g

If i run same command in Ubuntu 16 then the path is correct.

s%@CFLAGS@%-Os%g

s%@CPPFLAGS@%%g

s%@CXXFLAGS@%%g

s%@DEFS@% -DHAVE_LIBM=1 -DSTDC_HEADERS=1 -DHAVE_UNISTD_H=1 %g

s%@LDFLAGS@%%g

s%@LIBS@%-lm %g

s%@exec_prefix@%${prefix}%g

s%@prefix@%/home/speech/tools/kaldi-trunk/tools/sctk%g

s%@program_transform_name@%s,x,x,%g

s%@CC@%gcc%g

s%@SET_MAKE@%%g

s%@CPP@%gcc -E%g

s%@INSTALL@%/usr/bin/install%g

s%@DIFF@%%g

s%@NDIFF@%%g

s%@SLM_DEFS@%%g

s%@SLM_TARGETS@%%g

 I'dont know what is going on, the debian have sctk package, maybe i can skipt the sctk installation? The Debian is installed from scratch, only added packages for Kaldi installation.

Daniel Povey

unread,
May 18, 2019, 1:13:55 PM5/18/19
to kaldi-help
I suspect your autotools or automake package is messed up in some weird way. (perhaps the result of `dpkg -l | grep automake` would help diagnose it).  Or possibly some other package it depends on is messed up or you have some strange aliases in your .bashrc that are confusing it.

Not all the example scripts require sctk -- in fact, most of the ones that involve free data don't-- so you may be OK with just skipping it.  But the underlying issue may affect other builds.

Dan


--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.

Urmas Kirsipuu

unread,
May 18, 2019, 4:07:00 PM5/18/19
to kaldi-help
ii automake 1:1.15-6 all Tool for generating GNU Standards-compliant Makefiles

Daniel Povey

unread,
May 18, 2019, 4:59:45 PM5/18/19
to kaldi-help
I have the same thing; I suppose the package is normal.
Try removing all the files and directories in tools/ that have sclite or sctk in the name and reinstalling it.




On Sat, May 18, 2019 at 4:07 PM Urmas Kirsipuu <urmas.k...@gmail.com> wrote:
ii  automake                                            1:1.15-6                          all          Tool for generating GNU Standards-compliant Makefiles

--
Go to http://kaldi-asr.org/forums.html find out how to join
---
You received this message because you are subscribed to the Google Groups "kaldi-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi-help+...@googlegroups.com.
To post to this group, send email to kaldi...@googlegroups.com.

Urmas Kirsipuu

unread,
Jun 25, 2019, 3:18:37 AM6/25/19
to kaldi-help
The problem is system settings. I installed Debian in estonian language, when i installed the english, everything installed normally.

You can close this thread. 
Reply all
Reply to author
Forward
0 new messages