[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Anyone succeeded to install the Curses module for Perl? - YES!
Hello!
It seems that I just managed to install the Curses module for Perl!!!
What I did: (I will skip the unsuccessful steps and the 4 letter words
;-))
I downloaded the stable perl sources (www.perl.org)
I re-installed perl (At this moment I don't really know if this had any
influence
at all on the Curses installation) but I was after a long number of other
unsuccessful retries.
By the way, there are two ways to install it: One where it asks you step
by step
a dozen questions, suggesting a default answer for each. I tried this
first, going
with the default each time, and ...it didn't worked ;-^
The second one is less interactive, actually it doesn't asks you anything.
But it worked!!!
After that I unpacked the curses archive ( let's say in a folder called
Curses).
I used the Curses/hints/c-none.h, copied as Curses/c-config.h and modified
slightly:
----------------------- CUT HERE --------------------------
/* Change <curses.h> below to the proper "include" file for curses. */
#include <curses.h>
/* Change each #undef below to #define if the answer to the question
* beside it is "yes".
*/
#define C_LONGNAME /* Does longname() exist? */
#define C_LONG0ARGS /* Does longname() take 0 arguments? */
#undef C_LONG2ARGS /* Does longname() take 2 arguments? */
#define C_TOUCHLINE /* Does touchline() exist? */
#define C_TOUCH3ARGS /* Does touchline() take 3 arguments? */
#undef C_TOUCH4ARGS /* Does touchline() take 4 arguments? */
/* Some Curses include files have problems interacting with perl,
* some are missing basic functionality, and some just plain do
* weird things. Unfortunately, there's no way to anticipate all
* of the problems the curses include file + "perl.h" might create.
*
* If you find that you can't compile Curses.c because of these
* conflicts, you should insert C code before and after the "include"
* file above to try and fix the problems. "See c-sunos.sysv.h"
* for an example
----------------------- CUT HERE --------------------------
After that I modified Makefile.PL for the $inc and $lib : (it is at the
top
of the file, and these are the only lines that needs to be modified)
----------------------- CUT HERE --------------------------
my $inc='';
my $libs='-lcurses -ltermcap';
----------------------- CUT HERE --------------------------
After that:
# perl Makefile.PL
# make
# make test
# make install
and it worked!
However, If you run the demo program or the test, or you write a small
perl script by yourself, you will notice that there are some strange
things
happening, like the border of a window doesn't have the top line and you
cannot change the background colour of a window. Or at least in my case.
If you can sort this out, tell me as it was the factor that made me stop
using
Curses module ;-((
Hope it helps,
Florentin Albu
Client-Server Systems Manager
falbu@amnesty.org
_________________________________________________________
Amnesty International, International Secretariat
visit us at http://www.amnesty.org
Be Realistic! Plan for a Miracle!
"Ryan Erwin" <ryan@dbedge.com>
02/03/2000 21:41
Please respond to "Ryan Erwin"
To: <falbu@amnesty.org>
cc:
Subject: Re: Anyone succeeded to install the Curses module for Perl?
Misery loves company...
I have had many problems installing many different perl modules...
I think many of the problems are caused by the fact that openbsd's perl
doesn't include /usr/local/lib in the default libs path...
If you manage to get:
curses
Tk
ImageMagick
perl modules installed, let me know ;-)
Thanks, and Good Luck to You-
Ryan Erwin
----- Original Message -----
From: <falbu@amnesty.org>
To: <misc@openbsd.org>
Sent: Wednesday, March 01, 2000 1:54 PM
Subject: Anyone succeeded to install the Curses module for Perl?
> Hello!
>
> I have OpenBSD current, I also compiled perl stable. However, I still
> cannot compile the Curses module.
> I have noticed a similar message in the archives, however there was no
> response (see the following link).
>
http://www.sigmasoft.com/cgi-bin/wilma_hiliter/openbsd-misc/200001/msg00228.
html
>
> Any ideas?
> Thanks,
>
> Florentin Albu
>
> Client-Server Systems Manager
> falbu@amnesty.org
> _________________________________________________________
> Amnesty International, International Secretariat
> visit us at http://www.amnesty.org
>
> Be Realistic! Plan for a Miracle!
>
>
>