kaldi-asr / kaldi

kaldi-asr/kaldi is the official location of the Kaldi project.
http://kaldi-asr.org
Other
14.24k stars 5.32k forks source link

MacOS Catalina Unable to find Zlib #4109

Closed Sruthik22 closed 4 years ago

Sruthik22 commented 4 years ago

I am getting:

extras/check_dependencies.sh: zlib is not installed.
extras/check_dependencies.sh: The following prerequisites are missing; install them first:
   zlib1g-dev

I have downloaded and installed the command line tools for Xcode directly from the Apple website according to some suggestions online. Nothing I have done has helped Kaldi find zlib on my computer.

danpovey commented 4 years ago

From here https://stackoverflow.com/questions/23749530/brew-install-zlib-devel-on-mac-os-x-mavericks you should be able to install with: xcode-select --install

Sruthik22 commented 4 years ago

I have tried to run this command, and directly download the command line tools - but they have not helped. I have also tried to build zlib directly from source and I get the message: ./configure Checking for gcc... Checking for shared library support... No shared library support. Building static library libz.a version 1.2.11 with gcc. Checking for size_t... No. Checking for long long... Yes. Failed to find a pointer-size integer type. ** ./configure aborting.

danpovey commented 4 years ago

Try just ignoring the issue. zlib may not really be needed except for IRSTLM, which is only used in a few recipes now.

danpovey commented 4 years ago

Or try brew install zlib

Sruthik22 commented 4 years ago

I got it to work! However, when I run make I am getting the same exact issue described here: https://github.com/kaldi-asr/kaldi/issues/4078

danpovey commented 4 years ago

Many issues are described there, you need to be more specific. I think that guy's problems disappeared when he reinstalled Catalina.

On Wed, Jun 17, 2020 at 12:12 AM Sruthi Kurada notifications@github.com wrote:

I got it to work! However, when I run make I am getting the same exact issue described here: #4078 https://github.com/kaldi-asr/kaldi/issues/4078

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4109#issuecomment-644863090, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAZFLO67KRH7YGPWBDUTP4LRW6KXLANCNFSM4N7UD4PA .

Sruthik22 commented 4 years ago

I have the same error message when running the make command. I did not do the rest of the things he outlined afterward, and I am not sure I have the time to start from scratch and reinstall Catalina.

AraHaan commented 2 years ago

This is interesting because for some reason brew say that zlib is provided by the OS by default, but nothing exposes where the OS default version lies.

SofijaErkin commented 2 years ago

@Sruthik22

just use "brew info zlib" to check the version of zlib on mac.

If don't have it, then just use"brew search zlib" to know whether has it or not.

If really didn't have that, then just use "brew install zlib" to install zlib.

Finally, use "brew search zlib" to know whether has it or not,

And use "brew info zlib" to check the version of zlib.

danpovey commented 2 years ago

When I type make in tools on Catalina, I get this:

mac:tools: extras/check_dependencies.sh
extras/check_dependencies.sh: Intel MKL does not seem to be installed.
 ... Download the installer package for your system from:
 ...   https://software.intel.com/mkl/choose-download
 ... You can also use other matrix algebra libraries. For information, see:
 ...   http://kaldi-asr.org/doc/matrixwrap.html

... however, make continues. It could be that is OK. It does not say anything about zlib. I'm guessing the zlib headers are installed by XCode, and if you have not updated your XCode, you may have a problem.

jtrmal commented 2 years ago

I think Mac has the accelerate framework that includes BLAS/cBLAS. Not sure of it's performance w.r.t. MKL or if the error should exist or what would happen afterwards :) y

On Fri, Dec 10, 2021 at 12:07 AM Daniel Povey @.***> wrote:

When I type make in tools on Catalina, I get this:

mac:tools: extras/check_dependencies.sh extras/check_dependencies.sh: Intel MKL does not seem to be installed. ... Download the installer package for your system from: ... https://software.intel.com/mkl/choose-download ... You can also use other matrix algebra libraries. For information, see: ... http://kaldi-asr.org/doc/matrixwrap.html

... however, make continues. It could be that is OK. It does not say anything about zlib. I'm guessing the zlib headers are installed by XCode, and if you have not updated your XCode, you may have a problem.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kaldi-asr/kaldi/issues/4109#issuecomment-990621507, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACUKYX3WITW4FIZA4X3FJP3UQGDITANCNFSM4N7UD4PA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.