Posted on 2005-08-09 03:47:41-07 by doss
cpan command based install on Mac OS X failed

Ken,

Just tried to install latest version of Apache-SSI on MacOSX 10.3.9 via the cpan command line tool. It failed initially because Module::Build wasnt installed. Having not heard of your new MakeMaker replacement I was a bit flummoxed about what was happening. I eventually relaised that was missing a core module for building and found your new module (looks like a very useful alternative - your motivation echoes the same issues with providing a TCL only install mechanism for TCL packages that I have helped create). Anyway it might be nice to list M::B as a 'dependency' on the CPAN A::S page ?

Once M::B was installed, things went better, but it is still refusing to install (even though it has built ok) . Here is the output:

Checking if your kit is complete... Looks good Writing Makefile for Apache::SSI /usr/bin/perl "-Iblib/arch" "-Iblib/lib" Build.PL Build cp lib/Apache/FakeSSI.pm blib/lib/Apache/FakeSSI.pm cp lib/Apache/SSI.pm blib/lib/Apache/SSI.pm Manifying blib/man3/Apache::SSI.3pm Manifying blib/man3/Apache::FakeSSI.3pm For testing purposes, please give the full path to an httpd with mod_perl enabled. The path defaults to $ENV{APACHE}, if present. [/usr/sbin/httpd] ('!' to skip): ! Skipping. Creating custom builder _build/lib/MyModuleBuilder.pm in _build/lib syntax error at /private/var/spool/cpan/build/Apache-SSI-2.19/_build/lib/MyModuleBuilder.pm line 13 +, near "= ;" Compilation failed in require at (eval 17) line 2, <FH> line 1. BEGIN failed--compilation aborted at (eval 17) line 2, <FH> line 1. make: *** [Build] Error 255 /usr/bin/make -j3 -- NOT OK Running make test Can't test without successful make Running make install make had returned bad status, install seems impossible

The failed code line in MyModuleBuilder.pm was :

$ENV{PORT} = ; # Used by the test scripts

I ended up building and installing it by hand . Which went well except that the 'real.t' tests all failed - the Build mechanism didnt ask for the web server config details (as the Make based installation does), so obviously it couldnt run the real tests.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.