getting arsperl to compile
Brought to you by:
jeffmurphy
|
From: Lori A. E. S. <lo...@sc...> - 1996-03-28 21:57:09
|
Howdy all,
I'm looking forward to getting started with using arsperl, but compiling
is never as easy as it's supposed to be. So anyway, here's what's
happening, and perhaps someone can tell me what's going on.
Here's my makefile after I edited it to point to my ar api directories.
######################################################################
#!/usr/local/bin/perl
use ExtUtils::MakeMaker;
$ARS_LDPATH = "-L/opt/ar/api/lib";
$INCLUDES = "-I/opt/ar/api/include";
$ARS_LIBS = "-lar -lnsl";
WriteMakefile(
'NAME' => 'ARS',
'VERSION' => '1.2',
'LIBS' => ["${ARS_LDPATH} ${ARS_LIBS}"],
'DEFINE' => '-g',
'OBJECT' => "ARS.o",
'INC' => "${INCLUDES}",
);
######################################################################
The installation instructions say all I need to do is type:
perl Makefile.PL
Anyway, I get these error messages:
loriae % perl Makefile.PL
syntax error in file Makefile.PL at line 3, next 2 tokens "use ExtUtils"
syntax error in file Makefile.PL at line 9, next 2 tokens
"WriteMakefile("
Execution of Makefile.PL aborted due to compilation errors.
loriae %
So, I decide, gee, maybe this is a perl5 thing that they haven't told me
about. So, I try:
perl5 Makefile.PL
And, I get these error messages:
loriae % perl5 Makefile.PL
Undefined subroutine &main::WriteMakefile called at Makefile.PL line 9.
loriae %
Well, this looks like a real error message. So, can someone tell me, is
this perl5 stuff?
I couldn't find anything called "main" that looked like it was relevant
to this makefile.
Here is some info about my system.
our perl is in /usr/local/bin/perl
our perl5 is in /usr/local/bin/perl5
our ars stuff is in /opt/ar/
the make I will be using is /opt/cygnus/progressive/sun4s2/bin/make
ARS resides on this system: solaris 2.3
I ran "perl Makefile.PL" on solaris 2.4 (solaris2.3 gave same errors)
Any suggestions on where I go from here would be greatly appreciated.
Thanks!
-Lori Schneider
|