Brew cask install meld: 'can't import GTK +': what happened to my library?

I tried installing meld on my iMac running OS / X 10.13.1 High Sierra.

brew cask install meld

and homebrewcompleted without errors, but when I tried to start it, I saw

$ meld check1ping.sh check2pings.sh
frozen: ImportError
Cannot import: GTK+
dlopen(/Applications/Meld.app/Contents/Resources/lib/python2.7/gi/_gi.so, 2): Symbol not found: _inflateValidate
  Referenced from: /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
  Expected in: /Applications/Meld.app/Contents/Frameworks/libz.1.dylib
 in /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib

I have been asking questions. How to fix the "Failed to import: GTK +" errors caused by the absence of "gi.repository"? and Error Meld "Unable to import: GTK +; No module with repository name" , but this problem seems different.

I found this page , which indicates that I am /Applications/Meld.app/Contents/Frameworks/libz.1.dylibout of date. This is what I saw in /Applications/Meld.app/Contents/Frameworks:

-rwxr-xr-x  1 myusername  staff   127692  4 May  2016 libz.1.2.8.dylib
lrwxr-xr-x  1 myusername  staff       16 16 Nov 15:24 libz.1.dylib -> libz.1.2.8.dylib

Looking for a replacement, I found:

lrwxr-xr-x  1 root  wheel      12 11 Nov 09:57 /usr/lib/libz.1.1.3.dylib -> libz.1.dylib
lrwxr-xr-x  1 root  wheel      12 11 Nov 09:57 /usr/lib/libz.1.2.11.dylib -> libz.1.dylib
lrwxr-xr-x  1 root  wheel      12 11 Nov 09:57 /usr/lib/libz.1.2.5.dylib -> libz.1.dylib
lrwxr-xr-x  1 root  wheel      12 11 Nov 09:57 /usr/lib/libz.1.2.8.dylib -> libz.1.dylib
-rwxr-xr-x  1 root  wheel  186432 25 Oct 17:37 /usr/lib/libz.1.dylib
lrwxr-xr-x  1 root  wheel      12 11 Nov 09:57 /usr/lib/libz.dylib -> libz.1.dylib

libz.1.dylib meld , .

: , , ?

, brew cask , , , , , meld ruby ​​file, . , brew .

!

+4
2

upstream. , , Meld.

. , brew update, brew cask update, brew cask upgrade, brew upgrade.

, :

brew update
brew cask upgrade
+1

, , . -, , MacOS High Sierra. homebrew, "" , ...

unlink /Applications/Meld.app/Contents/Frameworks/libz.1.dylib
ln -s /usr/lib/libz.1.dylib /Applications/Meld.app/Contents/Frameworks/libz.1.dylib

Meld libz.1.dylib (127692 4 2016 ), , , 1.2.8. , (GTK +) libz.1.dylib (186432 25 2017 ), , 1.2.11.

, Meld- , , Meld, Meld MacOS High Sierra.

+2

Source: https://habr.com/ru/post/1689391/


All Articles