-
-
Save cnruby/960344 to your computer and use it in GitHub Desktop.
$ 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
Add #include <curses.h> at the top of your file.
@catahache
Add #include <curses.h> at the top of your file.
Thank you, I have some weird things going on... When I run the program on eclipse, some weird characters appears between, and I cannot make it function. When I try to run it on the macosx terminal, it doesn't load. But also it gives me no error.
I'm really new into programming, so maybe I need to set something or idk... I don't know how to set, for example, enviroment variables to set the TERM. Can somebody maybe help me? :( I'm going on for a week trying to solve this problem hahaha
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.
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 :(
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?....
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
It's probably already installed as osx uses it. Just tell gcc to link to it: gcc -lncurses ...
Can someone please tell how to make the ncurses library installed from brew to a project? I have set the following environment variables as my CPPFLAGS and LDFLAGS but it does not help.
CPPFLAGS=-I/usr/local/opt/ruby/include -I/usr/local/opt/ncurses/include -I/usr/local/opt/ncurses/include -I/usr/local/opt/qt/include
LDFLAGS=-L/usr/local/opt/ruby/lib -L/usr/local/opt/ncurses/lib -lncurses -L/usr/local/opt/qt/lib