neovim / homebrew-neovim

Homebrew formula
MIT License
402 stars 72 forks source link

how to update my xgettext version?? #197

Closed luckduvip closed 7 years ago

luckduvip commented 7 years ago

when i type 'brew install neovim' the err code is

Referenced from: /opt/local/bin/xgettext Reason: Incompatible library version: xgettext requires version 6.0.0 or later, but libncurses.6.dylib provides version 5.0.0

i do not know how to update the xgettext. help me ~~

mhinz commented 7 years ago

As far as I know, xgettext is no dependency, but it apparently gets used if it's in $PATH. It wasn't installed by homebrew (because homebrew does not install to /opt/local/bin) and compiled against a libncurses version other than the one shipped by macOS.

$ ls -l /usr/lib/libncurses*
-rwxr-xr-x 1 root wheel 522064 Sep 14 02:56 /usr/lib/libncurses.5.4.dylib
lrwxr-xr-x 1 root wheel     20 Sep 21 18:16 /usr/lib/libncurses.5.dylib -> libncurses.5.4.dylib
lrwxr-xr-x 1 root wheel     20 Sep 21 18:16 /usr/lib/libncurses.dylib -> libncurses.5.4.dylib

No libncurses 6.x.

Try finding out why there's a gettext in /opt/local and remove it, or remove /opt/local/bin from your $PATH, before using brew.

luckduvip commented 7 years ago

@mhinz I try again , Any way , thanks.

luckduvip commented 7 years ago

@mhinz It do not work. and I use port to install neovim in my mac. any way, thanks.

mhinz commented 7 years ago

You mix MacPorts (which installs to /opt/local) and Homebrew, eh? Don't do that.

As you can see here, MacPorts' Neovim depends on gettext which again depends on ncurses 6.0. Apparently you installed gettext using MacPorts once and deinstalled the port of ncurses later. Or maybe MacPorts libncurses version can't be found.

It's an environmental problem for sure. :-)