Hello all,

I'd like to install Term::Visual and to do this, Curses is required. The system is SuSE 9.3. Using perl -MCPAN, I summon the installtion of Curses and it starts with a splash of:

Doing test compiles with the compile command 'cc -DSYM="_C_SYM_" -I/usr/include/curses -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -o _C_FILE_ _C_FILE_.c -lncurses>/dev/null 2>&1' function 'waddch' NOT found function 'wechochar' NOT found function 'waddchstr' NOT found function 'waddchnstr' NOT found function 'waddstr' NOT found function 'waddnstr' NOT found
... goes on like that for quite a while ...

And then it starts seeing conflicts:

cc -c -I/usr/include/curses -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -march=i586 -mcpu=i686 -fmessage-length=0 -Wall -g -Wall -pipe -DVERSION=\"1.13\" -DXS_VERSION=\"1.13\" -fPIC "-I/usr/lib/perl5/5.8.6/i586-linux-thread-multi/CORE" Curses.c In file included from c-config.h:9, from Curses.c:11: /usr/include/ncurses.h:285: error: conflicting types for `WINDOW' /usr/include/curses/curses.h:159: error: previous declaration of `WIND +OW'

.. to finally abort the installation.

SuSE 9.3 libs and includes have both curses and ncurses installed. Has anyone had the same problem and what would be the fix to make Curses.pm happy and eventually be able to use Term::Visual ?

Thanks !


In reply to Problem installing Curses for Term::Visual by carcassonne

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.