Skip to content

Instantly share code, notes, and snippets.

@cnruby
Created May 7, 2011 09:05
Show Gist options
  • Save cnruby/960344 to your computer and use it in GitHub Desktop.
Save cnruby/960344 to your computer and use it in GitHub Desktop.
HOW TO INSTALL ncurses on MacOSX
$ curl -O ftp://ftp.gnu.org/gnu/ncurses/ncurses-5.9.tar.gz
$ tar -xzvf ncurses-5.9.tar.gz
$ cd ./ncurses-5.9
$ ./configure --prefix=/usr/local \
--without-cxx --without-cxx-binding --without-ada --without-progs --without-curses-h \
--with-shared --without-debug \
--enable-widec --enable-const --enable-ext-colors --enable-sigwinch --enable-wgetch-events \
&& make
$ sudo make install
@catahache
Copy link

Hello,
Today I ran into the same problem and after looking at the responses and trying almost everything, I keep running into the same problem. brew install ncurses may work fine for some, but does anyone have any other ideas I could try. Would be highly appreciated.

Sadly, I couldn't solve it :(

@jiyoony
Copy link

jiyoony commented May 13, 2021

hi guys
I have a problem like this...
I tried "sudo make install"
"? tic could not build /usr/local/share/terminfo
make[1]: *** [install.data] Error 1
make: *** [install] Error 2"
how can i solve it?....

@jiyoony
Copy link

jiyoony commented May 13, 2021

hi guys
I have a problem like this...
I tried "sudo make install"
"? tic could not build /usr/local/share/terminfo
make[1]: *** [install.data] Error 1
make: *** [install] Error 2"
how can i solve it?....

i solved it like this
$./configure
$make
& sudo make install

@jonhudson
Copy link

It's probably already installed as osx uses it. Just tell gcc to link to it: gcc -lncurses ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment