【问题标题】:happygrep - dyld: Library not loaded: /usr/local/opt/ncurses/lib/libncursesw.5.dylibhappygrep - dyld:库未加载:/usr/local/opt/ncurses/lib/libncursesw.5.dylib
【发布时间】:2015-05-15 13:21:04
【问题描述】:

我正在尝试在我的 Mac OS X 10.9 上运行 CLI happygrep。但发生错误: happygrep - dyld:库未加载:/usr/local/opt/ncurses/lib/libncursesw.5.dylib

我是这样安装的:

  $ brew cask update
  $ brew cask install happygrep

有人可以帮助我吗?谢谢。

【问题讨论】:

标签: macos grep ncurses dylib homebrew-cask


【解决方案1】:

重新安装ncurses 包应该会有所帮助,例如

brew reinstall ncurses

【讨论】:

    【解决方案2】:

    经过挣扎,我找到了解决办法:

    1. 为什么会出错:因为 CLI happygrep 需要 ncursesw 相关的库来支持。
    2. 安装ncursesw相关的库:

      $ brew search ncurses
      homebrew/dupes/ncurses 
      $ brew install homebrew/dupes/ncurses
      
    3. 之后,运行 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.,因此它不再是实际的。
    猜你喜欢
    • 2021-11-20
    • 2021-07-14
    • 2020-04-19
    • 2020-03-19
    • 2018-11-11
    • 1970-01-01
    • 2013-10-13
    • 2012-05-08
    相关资源
    最近更新 更多