mpv-player / homebrew-mpv

☠️ Merged into the main Homebrew repo (was: mpv related formulas for the Homebrew package manager)
http://mpv.io
175 stars 33 forks source link

Unable to find development files for zlib #27

Closed ghost closed 10 years ago

ghost commented 10 years ago

I get the following when I brew install mpv

Checking for zlib : no Unable to find development files for zlib.

I brew upgrade'd and brew updated'd, no change.

I have an uncanny feeling that this is a silly question, but Google isn't helping.

henry0312 commented 10 years ago

Please paste your installing command, e.g. brew install mpv --HEAD By the way, mpv's formula doesn't depend on zlib directly.

$ brew deps --tree -all mpv
mpv
|- :python
|- pkg-config
|- mpv-player/mpv/libass-ct
|  |- :git
|  |- pkg-config
|  |- autoconf
|  |- automake
|  |  |- autoconf
|  |- libtool
|  |- yasm
|  |  |- :python
|  |- freetype
|  |  |- libpng
|  |- fribidi
|- ffmpeg
|  |- pkg-config
|  |- texi2html
|  |- yasm
|  |  |- :python
|  |- x264
|  |  |- :git
|  |  |- yasm
|  |  |  |- :python
|  |- faac
|  |- lame
|  |- xvid
|- mpg123
|- jpeg
|- little-cms2
|  |- jpeg
|  |- libtiff
|  |  |- jpeg
|- lua
henry0312 commented 10 years ago

Also, please confirm existence of libz:

$ ls -l /usr/lib/libz*
lrwxr-xr-x 1 root wheel   16  9 23  2013 /usr/lib/libz.1.1.3.dylib -> libz.1.2.5.dylib*
-rwxr-xr-x 1 root wheel 166K  9 23  2013 /usr/lib/libz.1.2.5.dylib*
lrwxr-xr-x 1 root wheel   16  9 23  2013 /usr/lib/libz.1.dylib -> libz.1.2.5.dylib*
lrwxr-xr-x 1 root wheel   16  9 23  2013 /usr/lib/libz.dylib -> libz.1.2.5.dylib*
ghost commented 10 years ago

I don't know how to confirm/deny the presence of libz via terminal, but manually looking through /usr/lib shows only one file containing "libz": libz.1.2.5.dylib

My installing command(s) were

"brew tap mpv-player/mpv"

"brew install --HEAD mpv-player/mpv/libass-ct"

"brew install mpv"

I had to authorize the overwrite of some stuff during the second step, but it completed sucessfully.

henry0312 commented 10 years ago

I don't know how to confirm/deny the presence of libz via terminal

You can just run find /usr -name "libz.*".

I had to authorize the overwrite of some stuff during the second step

Please tell me more concretely.

ghost commented 10 years ago

/usr/lib/libz.1.1.3.dylib /usr/lib/libz.1.2.5.dylib /usr/lib/libz.1.dylib /usr/lib/libz.dylib /usr/local/lib/libz.a find: /usr/sbin/authserver: Permission denied

I'm afraid that I don't know how to scroll back to find out what I overwrote.

henry0312 commented 10 years ago

Do you remember whether you installed /usr/local/lib/libz.a manually or not? And, if you installed it, did you install with Homebrew?

ghost commented 10 years ago

I only started homebrewing about a week ago. Only other thing I've installed via Homebrew is xdelta3. I do know that my brew doctor shows a ton of unbrewed stuff, including /usr/local/lib/libz.a as an unbrewed static library.

ghost commented 10 years ago

You now only need libz, you also need zlib.h in an include directly (/usr/include/, or wherever else).

mpv depends directly on it, so it should be added to its dependencies.

ghost commented 10 years ago

What is the command for installing libz? I've tried the obvious ones and Google isn't helping.

henry0312 commented 10 years ago

@utterbull You have to do following things:

  1. Solve many problems shown by brew doctor
  2. Check the presence of zlib.h as wm4 pointed
ghost commented 10 years ago

I (think) i got it working. Had to delete the old zlib file.