cfiles icon indicating copy to clipboard operation
cfiles copied to clipboard

error and can not install

Open arstum opened this issue 4 years ago • 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"

arstum avatar Sep 15 '19 16:09 arstum

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

mananapr avatar Oct 26 '19 11:10 mananapr

==> 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

Donkeyfish87 avatar Dec 03 '19 17:12 Donkeyfish87

I have the same issue as the above.

ResolverJay avatar Dec 04 '19 03:12 ResolverJay

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!

mananapr avatar Dec 04 '19 07:12 mananapr

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

kosich avatar Dec 05 '19 06:12 kosich

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

sarmong avatar Apr 17 '20 10:04 sarmong