Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error and can not install #44

Open
arstum opened this issue Sep 15, 2019 · 6 comments
Open

error and can not install #44

arstum opened this issue Sep 15, 2019 · 6 comments

Comments

@arstum
Copy link

arstum commented Sep 15, 2019

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"

@mananapr
Copy link
Owner

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

@Donkeyfish87
Copy link

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

@ResolverJay
Copy link

I have the same issue as the above.

@mananapr
Copy link
Owner

mananapr commented Dec 4, 2019

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!

@kosich
Copy link

kosich commented Dec 5, 2019

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

@sarmong
Copy link

sarmong commented Apr 17, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants