Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Issues Installing CGI:Session

by sara2005 (Scribe)
on Nov 15, 2005 at 15:49 UTC ( [id://508646] : perlquestion . print w/replies, xml ) Need Help??

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

I have a need to install CGI::Session in my home directory and I am having issues with that when I run 'make test'.

Also, whenever I try to install new modules and hit the 'make' command, it brings up error messages asking for certain prerequisite modules to be installed. Then, I have to get and install them from CPAN. Sometimes, it gets to 4 levels or more, which is frustrating. Is this how we go about installing new modules?

Below is the error message i get with CGI::Session but I was still able to install the module despite these errors. Should I go ahead and try the code if it works or get rid of the errors before trying anything?

make test PERL_DL_NONLAZY=1 /pgesys/bin/perl -Iblib/arch -Iblib/lib -I/n +et/opt/perl/lib/5.6.1/PA-RISC2.0 -I/net/opt/perl/lib/5.6.1 -e 'use Te +st::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*. +t t/api3_db_file......skipped: DB_File not available t/api3_db_file_freezethaw.skipped: DB_File not available t/api3_db_file_storable.skipped: DB_File not available t/api3_db_file_storable_incr.skipped: DB_File not available t/api3_file.........ok + t/api3_file_freezethaw.skipped: FreezeThaw not available t/api3_file_freezethaw_incr.skipped: FreezeThaw not available t/api3_file_storable.skipped: Storable not available t/api3_file_storable_incr.skipped: Storable not available t/api3_incr.........ok + t/api3_obj_store....skipped test on this platform t/api3_obj_store_db_file.skipped: DB_File is not available t/cgi_simple........skipped: CGI::Simple not installed, so skipping re +lated tests. t/complex_ds........ok + t/driver_dbi........FAILED tests 1-3 + Failed 3/3 tests, 0.00% okay t/expire............FAILED tests 1-6 + Failed 6/6 tests, 0.00% okay t/flush.............FAILED tests 1-2 + Failed 2/2 tests, 0.00% okay t/g4................ok + t/g4_dbfile.........skipped: DB_File is NOT available t/g4_dbfile_freezethaw.skipped: DB_File is NOT available t/g4_dbfile_storable.skipped: DB_File is NOT available t/g4_freezethaw.....skipped: FreezeThaw is NOT available t/g4_mysql..........Use of uninitialized value in join or string at /net/opt/perl/lib/site_perl/5.6.1/PA-RISC2.0/DBI.pm line 383 ( +#1) (W uninitialized) An undefined value was used as if it were alread +y defined. It was interpreted as a "" or a 0, but maybe it was a mi +stake. To suppress this warning assign a defined value to your variables. To help you figure out what was undefined, perl tells you what ope +ration you used the undefined value in. Note, however, that perl optimiz +es your program and the operation displayed in the warning may not necessa +rily appear literally in your program. For example, "that $foo" is usually optimized into "that " . $foo, and the warning will refer +to the concatenation (.) operator, even though there is no . in your program. Can't read $DBI::errstr, last handle unknown or destroyed at t/g4_mysq +l.t line 45. skipped: Couldn't establish connection with the MySQL server: Can't co +nnect( user HASH(0x40010b40)), no database driver specified and DBI_ +DSN env var not set at t/g4_mysql.t line 43 t/g4_mysql_freezethaw.skipped: FreezeThaw is NOT available t/g4_mysql_storable.skipped: Storable is NOT available t/g4_postgresql.....skipped: DataSource is not known t/g4_postgresql_freezethaw.skipped: DataSource is not known t/g4_postgresql_storable.skipped: DataSource is not known t/g4_sqlite.........skipped: DBD::SQLite is NOT available t/g4_sqlite_freezethaw.skipped: DBD::SQLite is NOT available t/g4_sqlite_storable.skipped: DBD::SQLite is NOT available t/g4_storable.......skipped: Storable is NOT available t/header............FAILED tests 1-2 + Failed 2/2 tests, 0.00% okay t/ip_matches........FAILED tests 1-18 + Failed 18/18 tests, 0.00% okay t/is_new............FAILED tests 1-4 + Failed 4/4 tests, 0.00% okay t/load..............FAILED tests 1-4 + Failed 4/4 tests, 0.00% okay t/parse_dsn.........ok + t/remote_addr.......ok + t/str2seconds.......FAILED tests 1-9 + Failed 9/9 tests, 0.00% okay Failed Test Status Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +-------------------------------------------------- t/driver_dbi.t 3 3 100.00% 1-3 t/expire.t 6 6 100.00% 1-6 t/flush.t 2 2 100.00% 1-2 t/header.t 2 2 100.00% 1-2 t/ip_matches.t 18 18 100.00% 1-18 t/is_new.t 4 4 100.00% 1-4 t/load.t 4 4 100.00% 1-4 t/str2seconds.t 9 9 100.00% 1-9 25 tests skipped. Failed 8/39 test scripts, 79.49% okay. 48/194 subtests failed, 75.26% +okay. *** Error exit code 255 Stop.

READMORE tags added by Arunbear

Replies are listed 'Best First'.
Re: Issues Installing CGI:Session
by marto (Cardinal) on Nov 15, 2005 at 16:21 UTC

      Thanks for pointing to the link.

      Looks like I have to keep going until all the dependencies are installed..

      anyway, i tried the executing the code and it works!!

      Thanks again

Re: Issues Installing CGI:Session
by BerntB (Deacon) on Nov 15, 2005 at 16:01 UTC
    Why not use the cpan command? (What is the eq under Win. PPM?)

    (Update: Spelled 'PPM' right. Win use is down; only thing I really can't do in Debian is get my stupid printer to work. :-)