[cgiapp] another oddity installing CGI::Application::Dispatch

P Kishor punk.kish at gmail.com
Thu Oct 15 20:10:45 EDT 2009


I decided to try a potential alternative route to using various
modules on a shared web host. I thought I would install them into a
local (non-root) directory on my computer, and then upload them to the
web host. As long as the modules are pure perl, they should work, no?

So, I re-configured cpan to install modules under ~/perl. I was able
to install CGI::Simple and CGI::Application successfully under ~/perl,
but C::A::D failed again. I got the following error

  MARKSTOS/CGI-Application-Dispatch-2.16.tar.gz
  ./Build -- OK
Running Build test
/usr/local/bin/perl -I
/Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/blib/lib
-I /Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/blib/arch
t/TEST -clean
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl
/Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/t/TEST
-clean
/usr/local/bin/perl -I
/Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/blib/lib
-I /Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/blib/arch
t/TEST -bugreport -verbose=0
[warning] setting ulimit to allow core files
ulimit -c unlimited; /usr/local/bin/perl
/Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/t/TEST
-bugreport -verbose=0
/usr/sbin/httpd  -d
/Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/t -f
/Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/t/conf/httpd.conf
-D APACHE2
using Apache/2.2.11 (prefork MPM)

waiting 60 seconds for server to start: ....
waiting 60 seconds for server to start: ok (waited 3 secs)
server localhost:8529 started
t/cgi........ok
t/handler....
#   Failed test at t/handler.t line 27.
t/handler....NOK 1/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 2/61
#   Failed test at t/handler.t line 37.
t/handler....NOK 3/61
t/handler....NOK 4/61#   Failed test at t/handler.t line 215.

#   Failed test at t/handler.t line 47.
t/handler....NOK 6/61
#   Failed test at t/handler.t line 215.

#   Failed test at t/handler.t line 59.
t/handler....NOK 7/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 8/61
#   Failed test at t/handler.t line 65.
t/handler....NOK 9/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 10/61
#   Failed test at t/handler.t line 75.
t/handler....NOK 11/61
#   Failed test at t/handler.t line 215.
t/handler....ok 13/61
#   Failed test 'not found - no module'
#   at t/handler.t line 88.
#          got: '500'
t/handler....NOK 14/61#     expected: '404'
t/handler....ok 17/61
#   Failed test 'not found: no run mode'
#   at t/handler.t line 98.
#          got: '500'
#     expected: '404'
t/handler....NOK 18/61
t/handler....NOK 20/61#   Failed test 'server error: invalid characters'
#   at t/handler.t line 103.
#          got: '500'
#     expected: '400'

#   Failed test at t/handler.t line 111.
t/handler....NOK 21/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 22/61
t/handler....NOK 23/61#   Failed test at t/handler.t line 215.

#   Failed test at t/handler.t line 117.
t/handler....NOK 24/61
t/handler....NOK 25/61#   Failed test at t/handler.t line 215.

#   Failed test at t/handler.t line 215.
t/handler....NOK 26/61
#   Failed test at t/handler.t line 123.
t/handler....NOK 27/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 28/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 29/61
#   Failed test at t/handler.t line 133.
t/handler....NOK 30/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 31/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 32/61
#   Failed test at t/handler.t line 143.
t/handler....NOK 33/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 34/61
t/handler....NOK 35/61#   Failed test at t/handler.t line 215.

#   Failed test at t/handler.t line 149.
t/handler....NOK 36/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 37/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 38/61
#   Failed test at t/handler.t line 155.
t/handler....NOK 39/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 40/61
t/handler....NOK 41/61#   Failed test at t/handler.t line 215.

#   Failed test at t/handler.t line 161.
t/handler....NOK 42/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 43/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 44/61
#   Failed test at t/handler.t line 167.
t/handler....NOK 45/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 46/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 47/61
#   Failed test at t/handler.t line 178.
t/handler....NOK 48/61
t/handler....NOK 49/61#   Failed test at t/handler.t line 215.

#   Failed test at t/handler.t line 183.

#   Failed test at t/handler.t line 215.
t/handler....NOK 51/61
#   Failed test at t/handler.t line 188.
t/handler....NOK 52/61
#   Failed test at t/handler.t line 215.
t/handler....NOK 53/61
#   Failed test at t/handler.t line 193.

#   Failed test at t/handler.t line 215.
t/handler....NOK 55/61
#   Failed test at t/handler.t line 198.
t/handler....NOK 56/61
#   Failed test at t/handler.t line 215.
t/handler....ok 58/61
#   Failed test at t/handler.t line 204.
t/handler....NOK 59/61
#   Failed test at t/handler.t line 215.
t/handler....ok 61/61# Looks like you failed 54 tests of 61.
t/handler....dubious
	Test returned status 54 (wstat 13824, 0x3600)
DIED. FAILED tests 1-12, 14, 18, 20-57, 59-60
	Failed 54/61 tests, 11.48% okay
Failed Test Stat Wstat Total Fail  List of Failed
-------------------------------------------------------------------------------
t/handler.t   54 13824    61   54  1-12 14 18 20-57 59-60
Failed 1/2 test scripts. 54/89 subtests failed.
Files=2, Tests=89, 12 wallclock secs ( 0.46 cusr +  0.09 csys =  0.55 CPU)
Failed 1/2 test programs. 54/89 subtests failed.
[warning] server localhost:8529 shutdown
[  error] error running tests (please examine t/logs/error_log)
  MARKSTOS/CGI-Application-Dispatch-2.16.tar.gz
  ./Build test -- OK
Running Build install
Prepending /Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/blib/arch
/Users/punkish/.cpan/build/CGI-Application-Dispatch-2.16-87kGqY/blib/lib
to PERL5LIB for 'install'
Skipping /usr/local/lib/perl5/site_perl/5.8.8/CGI/Application/Dispatch.pm
(unchanged)
Skipping /usr/local/lib/perl5/site_perl/5.8.8/CGI/Application/Dispatch/Regexp.pm
(unchanged)
Installing /usr/local/man/man3/CGI::Application::Dispatch.3
Installing /usr/local/man/man3/CGI::Application::Dispatch::Regexp.3
Writing /usr/local/lib/perl5/site_perl/5.8.8/darwin-2level/auto/CGI/Application/Dispatch/.packlist
  MARKSTOS/CGI-Application-Dispatch-2.16.tar.gz
  sudo ./Build install  -- OK


############

What I don't like about the above is that the build script tried to
futz with my Apache conf file (setting ulimit, which, on a Mac OS X
machine, actually is problematic), and then tried to restart my Apache
server (if I am reading the above output correctly).

In any case, C::A::D did not install under ~/perl, as is evident from
the above. What gives?

-- 
Puneet Kishor http://www.punkish.org
Carbon Model http://carbonmodel.org
Charter Member, Open Source Geospatial Foundation http://www.osgeo.org
Science Commons Fellow, http://sciencecommons.org/about/whoweare/kishor
Nelson Institute, UW-Madison http://www.nelson.wisc.edu
-----------------------------------------------------------------------
Assertions are politics; backing up assertions with evidence is science
=======================================================================
Sent from Madison, WI, United States


More information about the cgiapp mailing list