http://www.perlmonks.org?node_id=250196

warren has asked for the wisdom of the Perl Monks concerning the following question:

Hi,<br.

I'm trying to install curses using the cpan shell and install curses but I get

CursesFun.c:3472: warning: initialization from incompatible pointer type make: *** Curses.o Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible

Umm, ahh help? I've searched google and this site, I really do not know where to start.

Cheers,
Warren

Replies are listed 'Best First'.
Re: curses installation on osx
by Zaxo (Archbishop) on Apr 14, 2003 at 03:52 UTC
Re: curses installation on osx
by tachyon (Chancellor) on Apr 14, 2003 at 02:00 UTC

    There are 4 calls being made by CPAN:

    $ perl Makefile.PL $ make $ make test $ make install

    The first error you get is because make is failing to compile the C code in Curses.c into Curses.o by the look of it. make test and make install naturally fail as you have no binary due to the earlier failure.

    To diagnose the exact issue(s) download the latest tar.gz from CPAN, untar it and go through the motions. See A guide to installing Modules if you are unfamiliar with the process. Then post the exact compilation errors here and the monks may be able to help you. You will need to specify what version of gcc you are using, Perl version and all the compiler output$ gcc -v; perl -v; perl Makefile.PL; make should do the trick if you do that in the Curses-1.06/ dir that the distro (probably) untars into.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print