Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Download Curses source code from here:
- # https://cpan.metacpan.org/authors/id/G/GI/GIRAFFED/Curses-1.38.tar.gz
- # extract it and change to the source directory
- $ brew info ncurses
- ncurses: stable 6.3 (bottled) [keg-only]
- Text-based UI library
- https://invisible-island.net/ncurses/announce.html
- /opt/homebrew/Cellar/ncurses/6.3 (3,968 files, 9.6MB)
- Poured from bottle on 2022-02-22 at 00:08:28
- From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/ncurses.rb
- License: MIT
- ==> Dependencies
- Build: pkg-config ✔
- ==> Caveats
- ncurses is keg-only, which means it was not symlinked into /opt/homebrew,
- because macOS already provides this software and installing another version in
- parallel can cause all kinds of trouble.
- If you need to have ncurses first in your PATH, run:
- echo 'export PATH="/opt/homebrew/opt/ncurses/bin:$PATH"' >> ~/.zshrc
- For compilers to find ncurses you may need to set:
- export LDFLAGS="-L/opt/homebrew/opt/ncurses/lib"
- export CPPFLAGS="-I/opt/homebrew/opt/ncurses/include"
- For pkg-config to find ncurses you may need to set:
- export PKG_CONFIG_PATH="/opt/homebrew/opt/ncurses/lib/pkgconfig"
- $ PKG_CONFIG_PATH="/opt/homebrew/opt/ncurses/lib/pkgconfig" pkg-config --libs ncurses
- -L/opt/homebrew/Cellar/ncurses/6.3/lib -Wl,-search_paths_first -lncursesw
- $ PKG_CONFIG_PATH="/opt/homebrew/opt/ncurses/lib/pkgconfig" pkg-config --cflags ncurses
- -D_DARWIN_C_SOURCE -I/opt/homebrew/Cellar/ncurses/6.3/include/ncursesw -I/opt/homebrew/Cellar/ncurses/6.3/include
- # Run perl Makefile.PL with these settings:
- $ CURSES_LIBTYPE=ncurses CURSES_LDFLAGS="-L/opt/homebrew/Cellar/ncurses/6.3/lib -Wl,-search_paths_first -lncursesw" CURSES_CFLAGS="-D_DARWIN_C_SOURCE -I/opt/homebrew/Cellar/ncurses/6.3/include/ncursesw -I/opt/homebrew/Cellar/ncurses/6.3/include" perl Makefile.PL
- GEN function: not applicable
- PANELS functions: not enabled
- MENUS functions: not enabled
- FORMS functions: not enabled
- Generating a Unix-style Makefile
- Writing Makefile for Curses
- Writing MYMETA.yml and MYMETA.json
- # Then compile, test, and install the module
- $ make
- $ otool -L blib/arch/auto/Curses/Curses.bundle
- blib/arch/auto/Curses/Curses.bundle:
- /opt/homebrew/opt/ncurses/lib/libncursesw.6.dylib (compatibility version 6.0.0, current version 6.0.0)
- /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1311.0.0)
- $ make test
- $ make install
Add Comment
Please, Sign In to add comment