Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Curses, foiled again?

by abitkin (Monk)
on Jul 14, 2003 at 05:24 UTC ( #273881=perlquestion: print w/replies, xml ) Need Help??

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

Okay, so here's the deal

I'm trying to install curses, for terminal control, and the module won't install. Here's the command:
perl -MCPAN -e "install Curses"

The error is:
gcc -c -I/usr/include/ncurses -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HA +VE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARG +EFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i3 +86 -mcpu=i686 -g -DVERSION=\"1.06\" -DXS_VERSION=\"1.06\" -fPIC "-I +/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" Curses.c In file included from /usr/lib/perl5/5.8.0/i386-linux-thread-multi/COR +E/perl.h:1768, from Curses.c:14: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/handy.h:83:1: warnin +g: "bool" redefined In file included from c-config.h:9, from Curses.c:11: /usr/include/ncurses/curses.h:137:1: warning: this is the location of +the previous definition Curses.c: In function `c_sv2window': Curses.c:275: warning: passing arg 1 of `Perl_sv_isa' from incompatibl +e pointer type Curses.c:275: warning: passing arg 2 of `Perl_sv_isa' from incompatibl +e pointer type Curses.c:275: too few arguments to function `Perl_sv_isa' In file included from Curses.c:344: CursesFun.c: In function `XS_Curses_newterm': CursesFun.c:1279: warning: initialization from incompatible pointer ty +pe CursesFun.c:1280: warning: initialization from incompatible pointer ty +pe CursesFun.c: In function `XS_Curses_putwin': CursesFun.c:3453: warning: initialization from incompatible pointer ty +pe CursesFun.c: In function `XS_Curses_getwin': CursesFun.c:3472: warning: initialization from incompatible pointer ty +pe 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


Any help would be appreciated
==
Kwyjibo. A big, dumb, balding North American ape. With no chin.

Replies are listed 'Best First'.
Re: Curses, foiled again?
by Paladin (Vicar) on Jul 14, 2003 at 05:57 UTC
    There is a patch out to get Curses 1.06 to work with Perl 5.8.0. A quick search of google found some links and help for this problem.

    Note: I haven't tried it myself, so I am not sure how well it works.

Re: Curses, foiled again?
by hossman (Prior) on Jul 14, 2003 at 06:33 UTC
Re: Curses, foiled again?
by Zaxo (Archbishop) on Jul 14, 2003 at 07:07 UTC

    I show a patch at Build Curses for Perl 5.8.0. I haven't posted that to the bug site because, for development, Curses uses a source build system which that patch doesn't touch and which I haven't decyphered.

    After Compline,
    Zaxo

      Okay, thanks for the help. It never occured to me that there may be a patch on a perl module, but it makes sense.

      I guess it is the fact that I've never had a problem building perl modules, or the fact that I'd been up for 20 hours that drove me to SOPW. Thanks again.
      ==
      Kwyjibo. A big, dumb, balding North American ape. With no chin.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://273881]
Approved by diotalevi
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2020-05-27 04:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?