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

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

Dear monks,

I have tried to install the Curses module. When I use the cpan unix command to install, it is not getting installed but displaying errors. I am using perl 5.8.

I checked the dependency modules and test reports in cpantesters, It displayed as 'Couldn't get dependencies'.

Then, I checked the bugs , but I didn't find any relevant bugs too.

I hope, someone would have tried to install the module. So, kindly guide me in this.

Replies are listed 'Best First'.
Re: Problem in installing Curses
by marto (Cardinal) on Jun 04, 2009 at 10:32 UTC

    Unless you tell us what the errors are it is difficult to advise. Have you read the INSTALL file?

    Martin

      Dear monk,

      The error is as follows,

      cpan> force install Curses Running install for module Curses Running make for G/GI/GIRAFFED/Curses-1.27.tgz Checksum for /home/nagalenoj/.cpan/sources/authors/id/G/GI/GIRAFFED/Cu +rses-1.27.tgz ok Curses-1.27/ Curses-1.27/gen.tar Curses-1.27/ppport.h Curses-1.27/MAINTENANCE Curses-1.27/t/ Curses-1.27/t/00-load.t Curses-1.27/HISTORY Curses-1.27/INSTALL Curses-1.27/Copying Curses-1.27/testint.c Curses-1.27/demo2 Curses-1.27/CursesBoot.c Curses-1.27/README Curses-1.27/testsym.c Curses-1.27/testtyp.c Curses-1.27/MANIFEST Curses-1.27/Artistic Curses-1.27/test.syms Curses-1.27/CursesTyp.h Curses-1.27/Curses.c Curses-1.27/CursesCon.c Curses-1.27/Curses.pm Curses-1.27/CursesVar.c Curses-1.27/Makefile.PL Curses-1.27/CursesFun.c Curses-1.27/cdemo.c Curses-1.27/demo.form Curses-1.27/list.syms Curses-1.27/demo.menu Curses-1.27/demo Curses-1.27/demo.panel Curses-1.27/gdc Curses-1.27/hints/ Curses-1.27/hints/c-gnukfreebsd.h Curses-1.27/hints/c-darwin.old.h Curses-1.27/hints/c-freebsd.bsd.h Curses-1.27/hints/c-netbsd.h Curses-1.27/hints/c-sunos.ncurses.h Curses-1.27/hints/c-vms.h Curses-1.27/hints/c-os2.ncurses.h Curses-1.27/hints/c-sco.h Curses-1.27/hints/c-next.h Curses-1.27/hints/c-sunos.sysv.h Curses-1.27/hints/c-linux.ncurses.h Curses-1.27/hints/c-cygwin.h Curses-1.27/hints/c-openbsd.h Curses-1.27/hints/c-isc.h Curses-1.27/hints/c-dynixptx.h Curses-1.27/hints/c-bsdos.h Curses-1.27/hints/c-solaris.h Curses-1.27/hints/c-irix.bsd.h Curses-1.27/hints/c-hpux.h Curses-1.27/hints/c-MSWin32.borland.h Curses-1.27/hints/c-bsd386.h Curses-1.27/hints/c-dgux.h Curses-1.27/hints/c-irix.ncurses.h Curses-1.27/hints/c-linux.bsd.h Curses-1.27/hints/c-aix.h Curses-1.27/hints/c-freebsd.ncurses.h Curses-1.27/hints/c-none.h Curses-1.27/hints/c-darwin.h Curses-1.27/hints/c-svr4.h Curses-1.27/hints/c-dec_osf.h Curses-1.27/hints/c-sunos.bsd.h Curses-1.27/hints/c-MSWin32.visualc.h Removing previously used /home/nagalenoj/.cpan/build/Curses-1.27 CPAN.pm: Going to build G/GI/GIRAFFED/Curses-1.27.tgz GEN function: not applicable PANELS functions: not enabled MENUS functions: not enabled FORMS functions: not enabled Making a guess for -I and -L/-l options... Guesses: includes: '-I/usr/include/ncurses' libs: '-lncurses' Curses type: ncurses Making a guess for "c-config.h"... Choosing hints file 'hints/c-linux.ncurses.h' Checking if your kit is complete... Looks good Writing Makefile for Curses cp Curses.pm blib/lib/Curses.pm /usr/bin/perl test.syms Checking capabilities of the Ncurses libraries. Set CURSES_VERBOSE environment variable to see the details of the test +s. Doing test compiles with the compile command 'cc -DSYM="_C_SYM_" -I/us +r/include/ncurses -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDE +BIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOU +RCE -D_FILE_OFFSET_BITS=64 -o _C_FILE_ _C_FILE_.c -L/usr/local/lib - +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 function 'wattroff' NOT found -- -A big list is displayed as NOT found -- typedef 'MEVENT' NOT found typedef 'mmask_t' NOT found typedef 'SCREEN' NOT found cc -c -I/usr/include/ncurses -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAV +E_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LA +RGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.27\" -DXS_V +ERSION=\"1.27\" -fPIC "-I/usr/lib/perl/5.8/CORE" Curses.c In file included from Curses.c:11: c-config.h:7:21: error: ncurses.h: No such file or directory Curses.c: In function 'c_domove': Curses.c:120: error: expected declaration specifiers before 'WINDOW' Curses.c: In function 'c_chtype2sv': Curses.c:171: error: 'ERR' undeclared (first use in this function) Curses.c:171: error: (Each undeclared identifier is reported only once Curses.c:171: error: for each function it appears in.) Curses.c: At top level: Curses.c:316: error: expected '=', ',', ';', 'asm' or '__attribute__' +before '*' token Curses.c:320: error: expected identifier or '(' before '{' token Curses.c: In function 'c_window2sv': Curses.c:335: error: expected declaration specifiers before 'WINDOW' In file included from Curses.c:390: CursesFun.c: In function 'XS_Curses_longname': CursesFun.c:3139: warning: initialization makes pointer from integer w +ithout a cast CursesFun.c: In function 'XS_Curses_touchline': CursesFun.c:3240: error: 'WINDOW' undeclared (first use in this functi +on) CursesFun.c:3240: error: 'win' undeclared (first use in this function) CursesFun.c:3240: error: 'stdscr' undeclared (first use in this functi +on) CursesFun.c:3241: error: 'OK' undeclared (first use in this function) CursesFun.c:3244: error: 'ERR' undeclared (first use in this function) 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
        My best bet is that you haven't got the ncurses development libraries installed. Check that you have something like "ncurses-dev" installed using your distribution package manager.

        Which OS are you running? Did you pay attention to section 4 of the INSTALL file?

        Martin