Click here to get back home

perl cgi session module installation problem

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
perl cgi session module installation problem bhuvana.aradhya 06-05-2006
Posted by bhuvana.aradhya on June 5, 2006, 11:11 am
Please log in for more thread options


HI ,

I am trying to install perl cgi::session module using the perl module
installation procedure

>downloaded the CGI-Session-4.10.tar.gz
>tar zxvf CGI-Session-4.10.tar.gz
>perl Makefile.pl

Failed with the following message, Can anybody suggest what is missing?

Not enough arguments for mkdir at Makefile.PL line 61, near "))"
BEGIN not safe after errors--compilation aborted at Makefile.PL line
66.

Thanks in advance.


Posted by Sisyphus on June 5, 2006, 8:52 pm
Please log in for more thread options



> HI ,
>
> I am trying to install perl cgi::session module using the perl module
> installation procedure
>
> >downloaded the CGI-Session-4.10.tar.gz
> >tar zxvf CGI-Session-4.10.tar.gz
> >perl Makefile.pl
>
> Failed with the following message, Can anybody suggest what is missing?
>
> Not enough arguments for mkdir at Makefile.PL line 61, near "))"
> BEGIN not safe after errors--compilation aborted at Makefile.PL line
> 66.
>

Strange .... the only occurrence of 'mkdir' in the Makefile.PL (which I
assume to be line 61) is:

mkdir(File::Spec->catfile('t', 'sessiondata'));

That should equate to:
mkdir 't/sessiondata';

Try using that instead.
If that fixes the error then you need to find out why File::Spec is
malfunctioning.

If the error persists, then it looks like perl is insisting that a second
MASK argument be supplied - and you would need to supply that argument. (See
'perldoc -f mkdir'.)

Alternatively, what I would probably do is manually create the 'sessiondata'
directory in the 't' directory, and then remove (comment out) the 'mkdir
...' line in the Makefile.PL :-)

Assuming your File::Spec is working correctly (and, therefore, that you
have uncovered a CGI::Session bug), you should file a bug report about this
at:
http://rt.cpan.org/Public/Dist/Display.html?Name=CGI-Session

One simple solution would be for the author to include, in the source
tarball, a file that needs to be unpacked into the t/sessiondata'
directory - ie a file whose sole purpose is to ensure that the
't/sessiondata' directory gets created without having to involve the
Makefile.PL in the process at all.

Cheers,
Rob



Posted by bhuvana.aradhya on June 6, 2006, 5:58 am
Please log in for more thread options


HI,

Thanks for the suggestion.
But after creating directory t/sessiondata and commenting line 61 in
the Makefile.PL,
I get warning messages and makefile is created.

Warning: prerequisite Digest::MD5 not found at (eval 1) line 220.
Warning: prerequisite Scalar::Util not found at (eval 1) line 220.
Warning: prerequisite Test::More not found at (eval 1) line 220.
Writing Makefile for CGI::Session

>make
....
....
....
Manifying blib/man3/CGI::Session::Serialize::json.3
/usr/perl5/5.00503/bin/pod2man: lib/CGI/Session/Serialize/json.pm is
missing required section: SYNOPSIS
Manifying blib/man3/CGI::Session::Serialize::storable.3
/usr/perl5/5.00503/bin/pod2man: lib/CGI/Session/Serialize/storable.pm
is missing required section: SYNOPSIS
Manifying blib/man3/CGI::Session::Tutorial.3
/usr/perl5/5.00503/bin/pod2man: lib/CGI/Session/Tutorial.pm is missing
required sections: SYNOPSIS DESCRIPTION
Manifying blib/man3/CGI::Session::Test::Default.3
/usr/perl5/5.00503/bin/pod2man: Invalid man page - 1st pod line is not
NAME in lib/CGI/Session/Test/Default.pm
Couldn't install blib/man3/CGI::Session::Test::Default.3


And the installation quits.
Can you please let me know if the installtion package is complete or
should I install any other dependencies for installing
CGI-Session-4.10.

Thanks.




Sisyphus wrote:
> > HI ,
> >
> > I am trying to install perl cgi::session module using the perl module
> > installation procedure
> >
> > >downloaded the CGI-Session-4.10.tar.gz
> > >tar zxvf CGI-Session-4.10.tar.gz
> > >perl Makefile.pl
> >
> > Failed with the following message, Can anybody suggest what is missing?
> >
> > Not enough arguments for mkdir at Makefile.PL line 61, near "))"
> > BEGIN not safe after errors--compilation aborted at Makefile.PL line
> > 66.
> >
>
> Strange .... the only occurrence of 'mkdir' in the Makefile.PL (which I
> assume to be line 61) is:


>
> mkdir(File::Spec->catfile('t', 'sessiondata'));
>
> That should equate to:
> mkdir 't/sessiondata';
>
> Try using that instead.
> If that fixes the error then you need to find out why File::Spec is
> malfunctioning.
>
> If the error persists, then it looks like perl is insisting that a second
> MASK argument be supplied - and you would need to supply that argument. (See
> 'perldoc -f mkdir'.)
>
> Alternatively, what I would probably do is manually create the 'sessiondata'
> directory in the 't' directory, and then remove (comment out) the 'mkdir
> ...' line in the Makefile.PL :-)
>
> Assuming your File::Spec is working correctly (and, therefore, that you
> have uncovered a CGI::Session bug), you should file a bug report about this
> at:
> http://rt.cpan.org/Public/Dist/Display.html?Name=CGI-Session
>
> One simple solution would be for the author to include, in the source
> tarball, a file that needs to be unpacked into the t/sessiondata'
> directory - ie a file whose sole purpose is to ensure that the
> 't/sessiondata' directory gets created without having to involve the
> Makefile.PL in the process at all.
>
> Cheers,
> Rob


Posted by Sisyphus on June 6, 2006, 6:35 am
Please log in for more thread options



> HI,
>
> Thanks for the suggestion.
> But after creating directory t/sessiondata and commenting line 61 in
> the Makefile.PL,
> I get warning messages and makefile is created.
>
> Warning: prerequisite Digest::MD5 not found at (eval 1) line 220.
> Warning: prerequisite Scalar::Util not found at (eval 1) line 220.
> Warning: prerequisite Test::More not found at (eval 1) line 220.
> Writing Makefile for CGI::Session
>
> >make
> ....
> ....
> ....
> Manifying blib/man3/CGI::Session::Serialize::json.3
> /usr/perl5/5.00503/bin/pod2man: lib/CGI/Session/Serialize/json.pm is
> missing required section: SYNOPSIS
> Manifying blib/man3/CGI::Session::Serialize::storable.3
> /usr/perl5/5.00503/bin/pod2man: lib/CGI/Session/Serialize/storable.pm
> is missing required section: SYNOPSIS
> Manifying blib/man3/CGI::Session::Tutorial.3
> /usr/perl5/5.00503/bin/pod2man: lib/CGI/Session/Tutorial.pm is missing
> required sections: SYNOPSIS DESCRIPTION
> Manifying blib/man3/CGI::Session::Test::Default.3
> /usr/perl5/5.00503/bin/pod2man: Invalid man page - 1st pod line is not
> NAME in lib/CGI/Session/Test/Default.pm
> Couldn't install blib/man3/CGI::Session::Test::Default.3
>
>
> And the installation quits.
> Can you please let me know if the installtion package is complete or
> should I install any other dependencies for installing
> CGI-Session-4.10.
>

Ooooh .... that's a very old version of perl that you're running - and quite
possibly the cause of the original problem and the cause of the latest
problem. I don't really know what to say if you want to stick with *that*
version of perl. I guess you could try installing the Digest::MD5,
Scalar::List::Utils, and Test::Simple distributions - but the errors that
stopped the build process don't seem (to me) to be related to the absence of
those (or any) modules.

(Sorry - it didn't occur to me that we might be dealing with such an old
version of perl when I read your original post.)

If it were me, I would be building and installing my own version of perl
5.8.8 into /usr/local and using that newer version of perl instead. (You
still leave the exisiting perl 5.00503 where it is for the system to use.)

Faik there might even be a pre-compiled version of perl 5.8.8 built for your
operating system that you can install into /usr/local (if you don't want to
build perl 5.8.8 yourself).

Cheers,
Rob



Posted by metaperl@gmail.com on June 6, 2006, 8:05 am
Please log in for more thread options



bhuvana.aradhya@gmail.com wrote:
> HI ,
>
> I am trying to install perl cgi::session module using the perl module
> installation procedure

Also ask on the cgi-session mailing list. I'm sure the author would be
happy to help you.


Similar ThreadsPosted
Mysql-DBD Perl module Installation Problem in HPUX June 30, 2005, 9:05 am
Perl module for cookie/logon/session management with Apache May 10, 2007, 12:40 pm
Installation problem - Net-SNMP Perl Modules on cygwin March 1, 2005, 1:52 am
Weird Module Installation Problem on Solaris 10 November 4, 2005, 8:36 am
Perl module installation April 11, 2005, 9:55 am
Local installation of perl module September 5, 2005, 9:07 am
Problems with CGI::Session in Perl August 8, 2005, 11:25 am
encapsulation of session/secure login: looking for perl mod September 29, 2004, 7:29 am
[RFC] Apache::Session::Memcached - new module proposal September 14, 2004, 3:54 pm
DBD-Pg installation problem September 20, 2004, 10:34 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap