Created
          May 7, 2011 09:05 
        
      - 
      
- 
        Save cnruby/960344 to your computer and use it in GitHub Desktop. 
    HOW TO INSTALL ncurses on MacOSX
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | $ 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 | 
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 ...
Linker issues mean that you didn't invoke -lncurses when compiling. ncurses requires this, as well as other ncurses libs, i.e. to compile a c file using ncurses and the ncurses' 'form' lib you'd use:
gcc -o -lform -lncurses [file] [name]If using xcode the linker options are buried under project->build settings->all->other linker flags.
This works thanks
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
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?....