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

MacOS Catalina Unable to find Zlib #4109

Closed
Sruthik22 opened this issue Jun 16, 2020 · 11 comments
Closed

MacOS Catalina Unable to find Zlib #4109

Sruthik22 opened this issue Jun 16, 2020 · 11 comments

Comments

@Sruthik22
Copy link

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

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

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

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

@danpovey
Copy link
Contributor

Or try brew install zlib

@Sruthik22
Copy link
Author

I got it to work! However, when I run make I am getting the same exact issue described here: #4078

@danpovey
Copy link
Contributor

danpovey commented Jun 16, 2020 via email

@Sruthik22
Copy link
Author

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

AraHaan commented Oct 28, 2021

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

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

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

jtrmal commented Dec 10, 2021 via email

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