homebrew – 在Mac OS X Sierra上运行时的警告

我在自己的机器上安装了自制软件.使用brew我安装了meld.当我用git运行它时,我收到以下错误:

Couldn't bind the translation domain. Some translations won't work.
'module' object has no attribute 'bindtextdomain'
2016-10-20 10:14:08.422 Python[22212:158273] *** WARNING: Method userSpaceScaleFactor in class NSView is deprecated on 10.7 and later. It should not be used in new applications. Use convertRectToBacking: instead.

(meld:22212): Gdk-WARNING **: GdkQuartzDisplay does not implement the monitor vfuncs

我不明白酿造是如何起作用的.事实上,我从来没有挖过它的代码,只用它来(un)安装软件.

做了一些在线搜索,但似乎没有解决方案.有没有人想出来?

Homebrew只是MacOS的包管理器.与Linux不同,Mac并不总是具有开箱即用的所有外部库,例如wget,pip等. Homebrew试图弥合这一差距.

至于解决你的问题,按照Homebrew的故障排除步骤帮助我…你可能只是陷入依赖地狱,因为Homebrew将很多库与Xcode集成(对我来说需要将Xcode更新到最新版本):https://github.com/Homebrew/brew/blob/master/docs/Troubleshooting.md#troubleshooting

保持最新的brew更新非常重要,然后运行brew doctor和brew prune也为我解决了很多问题.

如果所有其他方法都失败了,那么自制软件似乎已经将meld公式从homebrew / core转移到了caskroom / cask.所以我记得在运行brew doctor并更新Xcode后必须运行以下命令:

$brew uninstall meld
$brew install meld
Error: No available formula with the name "meld"
It was migrated from homebrew/core to caskroom/cask.
You can access it again by running:
brew tap caskroom/cask
$brew tap caskroom/cask
$brew cask install meld
==> Downloading https://github.com/yousseb/meld/releases/download/osx-9/meldmerge.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask meld
==> Moving App 'Meld.app' to '/Applications/Meld.app'.
==> Linking Binary 'Meld' to '/usr/local/bin/meld'.
🍺  meld was successfully installed!
相关文章
相关标签/搜索