1
votes

I'm trying to run CLI happygrep on my Mac OS X 10.9. but an error occured: happygrep - dyld: Library not loaded: /usr/local/opt/ncurses/lib/libncursesw.5.dylib.

I install it like this:

  $ brew cask update
  $ brew cask install happygrep

Can someone help me ? thanks.

2

2 Answers

4
votes

Reinstalling ncurses package should help, e.g.

brew reinstall ncurses
1
votes

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.