perl cgi session module installation problem

Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default perl cgi session module installation problem

    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.

    bhuvana.aradhya@gmail.com Guest

  2. Similar Questions and Discussions

    1. Local installation of perl module
      Hi, I need to install a perl module without root privileges. I've followed some advices found on the web: created a .cpan directory, copied...
    2. Mysql-DBD Perl module Installation Problem in HPUX
      Hi, I am facing the build problem while installing the DBD-MySql perl module (ver 2.9008) using both GCC and CC compilers in HP-UX machine. ...
    3. Perl module installation
      Hello, I need to install the libnet module on my SUN server. I downloaded the latest version from the CPAN website and uncompress it on y server....
    4. Perl Module installation instructions
      Well, http://www.cpan.org/modules/INSTALL.html gives a few instructions, but alas, those are most minimal (at least the part concerning MS...
    5. Perl module installation problem
      Dear Sir/Madam, I am just wondering if anyone can help with this: When I try to install the module, XML::Parser::PerlSAX, I encountered the...
  3. #2

    Default Re: perl cgi session module installation problem


    <bhuvana.aradhya@gmail.com> wrote in message
    news:1149520312.311110.258550@j55g2000cwa.googlegr oups.com...
    > 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:
    [url]http://rt.cpan.org/Public/Dist/Display.html?Name=CGI-Session[/url]

    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


    Sisyphus Guest

  4. #3

    Default Re: perl cgi session module installation problem

    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:
    > <bhuvana.aradhya@gmail.com> wrote in message
    > news:1149520312.311110.258550@j55g2000cwa.googlegr oups.com...
    > > 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:
    > [url]http://rt.cpan.org/Public/Dist/Display.html?Name=CGI-Session[/url]
    >
    > 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
    bhuvana.aradhya@gmail.com Guest

  5. #4

    Default Re: perl cgi session module installation problem


    <bhuvana.aradhya@gmail.com> wrote in message
    news:1149587926.595887.45820@f6g2000cwb.googlegrou ps.com...
    > 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


    Sisyphus Guest

  6. #5

    Default Re: perl cgi session module installation problem


    [email]bhuvana.aradhya@gmail.com[/email] 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.

    metaperl@gmail.com Guest

  7. #6

    Default Re: perl cgi session module installation problem

    Thanks to all.
    I changed the perl version to perl5.8.2 and the installation of cgi
    session was smooth.




    [email]metaperl@gmail.com[/email] wrote:
    > [email]bhuvana.aradhya@gmail.com[/email] 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.
    bhuvana.aradhya@gmail.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139