mananapr/cfiles

error and can not install

arstum opened this issue · 6 comments

brew tap mananapr/cfiles
brew install cfiles

Error: An exception occurred within a child process:
Utils::InreplaceError: inreplace failed
Makefile:
expected replacement of "-lncursesw" with "-lncurses"

Hi, sorry for the late reply.
I made some changes in the brew formula so can you try again and let me know if it is fixed?
I don't have a mac to test this

==> make
Last 15 lines from /****/Library/Logs/Homebrew/cfiles/01.make:
      _getTextPreview in cf-51c727.o
      _getDummyVidPreview in cf-51c727.o
      _main in cf-51c727.o
  "_wrefresh", referenced from:
      _displayStatus in cf-51c727.o
      _displayAlert in cf-51c727.o
      _getTextPreview in cf-51c727.o
      _getDummyVidPreview in cf-51c727.o
      _getVidPreview in cf-51c727.o
      _copyFiles in cf-51c727.o
      _removeFiles in cf-51c727.o
      ...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [all] Error 1

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/mananapr/homebrew-cfiles/issues

Last part of brew output when trying install, just censored my username

I have the same issue as the above.

From the errors, it seems that macOS is not able to link ncurses. I've added pkg-conifg as a dependency in the brew formula. Try updating the tap and reinstalling. I don't have a mac to test if this fixes the issue or not so keep me informed. Thanks!

Alas, I'm getting the same error as @Donkeyfish87
Brew tap is up-to-date (brew update, right?)

Seems like you're right that ncurses could not be found, here are the first lines from that make log:

cc `pkg-config --cflags ncurses` cf.c -o cfiles `pkg-config --libs ncurses`
Package ncurses was not found in the pkg-config search path.
Perhaps you should add the directory containing `ncurses.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ncurses' found
Package ncurses was not found in the pkg-config search path.
Perhaps you should add the directory containing `ncurses.pc'
to the PKG_CONFIG_PATH environment variable
No package 'ncurses' found
Undefined symbols for architecture x86_64:
  "_curs_set", referenced from:
      _curses_init in cf-2548bc.o
  ...

Should ncurses be manually installed / configured beforehand?
Thanks

Have the same problem.
Last 15 lines from...