kaldi failed: MKL libraries could not be found

2,561 views
Skip to first unread message

Sray Chen

unread,
Jun 19, 2019, 4:41:55 PM6/19/19
to kaldi-help
Hi all,

After I run ./extras/install_mkl.sh, I accidentally delete the /opt/intel/ directory.
And now, even I got message: ./extras/install_mkl.sh: MKL package intel-mkl-64bit-2019.2-057 was successfully installed, the ./extras/check_dependencies.sh will still give message:  Intel MKL is not installed

Anyone knows how to fix it?

The installation log for mkl is:
'''
./extras/install_mkl.sh: Your system is using debian-style package management.
+ apt-get update
Hit:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 163 kB in 1s (217 kB/s)
Reading package lists... Done
+ apt-get install -y wget apt-transport-https ca-certificates gnupg
Reading package lists... Done
Building dependency tree
Reading state information... Done
ca-certificates is already the newest version (20180409).
gnupg is already the newest version (2.2.4-1ubuntu1.2).
wget is already the newest version (1.19.4-1ubuntu2.2).
apt-transport-https is already the newest version (1.6.11).
The following packages were automatically installed and are no longer required:
  linux-aws-headers-4.15.0-1031 linux-aws-headers-4.15.0-1032 linux-aws-headers-4.15.0-1033 linux-aws-headers-4.15.0-1034 linux-aws-headers-4.15.0-1035
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 177 not upgraded.
+ apt-key --keyring /usr/share/keyrings/intel-sw-products.gpg add -
OK
+ echo 'deb [signed-by=/usr/share/keyrings/intel-sw-products.gpg] https://apt.repos.intel.com/mkl all main'
Hit:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 163 kB in 1s (217 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
intel-mkl-64bit-2019.2-057 is already the newest version (2019.2-057).
The following packages were automatically installed and are no longer required:
  linux-aws-headers-4.15.0-1031 linux-aws-headers-4.15.0-1032 linux-aws-headers-4.15.0-1033 linux-aws-headers-4.15.0-1034 linux-aws-headers-4.15.0-1035
Use 'apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 177 not upgraded.
./extras/install_mkl.sh: Configuring ld runtime bindings
+ echo '/opt/intel/lib/intel64
/opt/intel/mkl/lib/intel64'
+ ldconfig
./extras/install_mkl.sh: MKL package intel-mkl-64bit-2019.2-057 was successfully installed
'''

Thanks,
Sray

Daniel Povey

unread,
Jun 19, 2019, 4:54:21 PM6/19/19
to kaldi-help
I'd remove and then add the package, e.g.
apt-get remove  intel-mkl-64bit-2019.2-057 
apt-get install intel-mkl-64bit-2019.2-057 

(not sure if it's delete or remove).


--
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/ee23a1fa-d562-495f-b007-09a751a6205f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sray Chen

unread,
Jun 19, 2019, 5:18:42 PM6/19/19
to kaldi-help
Hi,

The apt-get remove intel-mkl-64bit-2019.2-057 didn't work.
The install_mkl.sh should create a directory /opt/intel/. But after following steps:
1. apt-get remove intel-mkl-64bit-2019.2-057
2. removing kaldi
3. git clone kaldi 
The ./extras/install_mkl.sh still can't create /opt/intel/ and give the message "MKL package intel-mkl-64bit-2019.2-057 was successfully installed", which will cause ./extras/check_dependencies.sh still think MKL is not installed.
To unsubscribe from this group and stop receiving emails from it, send an email to kaldi...@googlegroups.com.

Daniel Povey

unread,
Jun 19, 2019, 5:21:54 PM6/19/19
to kaldi-help
I don't know, you may have messed up the system in such a way that it confused Intel's installation script.  Kaldi's own script doesn't do anything more than call the system installer and check its output.
I can't help much more.


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.

Sray Chen

unread,
Jun 19, 2019, 5:23:50 PM6/19/19
to kaldi-help
Gotcha. Thanks for the suggestions!
Reply all
Reply to author
Forward
0 new messages