happygrep - dyld:库未加载:/usr/local/opt/ncurses/lib/libncursesw.5.dylib。

3

我正在尝试在我的 Mac OS X 10.9 上运行 CLI 程序 happygrep,但是出现了一个错误:happygrep - dyld:库未加载:/usr/local/opt/ncurses/lib/libncursesw.5.dylib

I install it like this:

  $ brew cask update
  $ brew cask install happygrep

有人能帮我吗?谢谢。


可能是重复的问题:dyld: Library not loaded ... Reason: Image not loaded - kenorb
2个回答

7
重新安装 ncurses 包可能有所帮助,例如:
brew reinstall ncurses

1
经过努力,我找到了解决方法:

After struggled, I find a way to solve it:

  1. Why error: because CLI happygrep need ncursesw-related lib to support.
  2. Install ncursesw-related lib:

    $ brew search ncurses
    homebrew/dupes/ncurses 
    $ brew install homebrew/dupes/ncurses
    

  3. After that, run CLI happygrep 'key-word'.

    See this -happygrep usage.


brew install homebrew/dupes/ncurses 会提示以下信息:Error: homebrew/dupes was deprecated. This tap is now empty as all its formulae were migrated.,因此已经不再适用。 - bonbonez

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接