From: Geoffrey G. H. <gha...@gw...> - 2005-03-23 16:02:53
|
Having a few problems getting started in building with OSX 10.3.5. I tried = to follow the OSX instructions to the letter=20 I get this error:=20 Apache make failed: 512 at /usr/local/src/krang-1.101-src/lib/Krang/Platfor= m.pm line 648. which hapens to be=20 line 648 system("make") =3D=3D 0 line 649 or die "Apache make failed: $?" in the sub build_apache_modperl: sub build_apache_modperl { my ($pkg, %arg) =3D @_; my ($apache_dir, $mod_perl_dir) =3D @arg{('apache_dir', 'mod_perl_dir')= }; _load_expect(); print "\n\n************************************************\n\n", " Building Apache/mod_perl", "\n\n************************************************\n\n"; # gather params my $apache_params =3D $pkg->apache_build_parameters(%arg); my $mod_perl_params =3D $pkg->mod_perl_build_parameters(%arg); # build mod_perl my $old_dir =3D cwd; chdir($mod_perl_dir) or die "Unable to chdir($mod_perl_dir): $!"; print "Calling '$^X Makefile.PL $mod_perl_params'...\n"; my $command =3D Expect->spawn("$^X Makefile.PL $mod_perl_params"); # setup command to answer questions modules ask my @responses =3D qw(y n); while (my $match =3D $command->expect( undef, 'Configure mod_perl with', 'Shall I build httpd', ) ) { $command->send( $responses[ $match - 1 ] . "\n" ); } $command->soft_close(); if ( $command->exitstatus() !=3D 0 ) { die "mod_perl Makefile.PL failed: " . $command->exitstatus(); } system("make PERL=3D$^X") =3D=3D 0 or die "mod_perl make failed: $?"; system("make install PERL=3D$^X") =3D=3D 0 or die "mod_perl make install failed: $?"; # build Apache chdir($old_dir) or die $!; chdir($apache_dir) or die "Unable to chdir($apache_dir): $!"; print "Calling './configure $apache_params'.\n"; system("./configure $apache_params") =3D=3D 0 or die "Apache configure failed: $?"; system("make") =3D=3D 0 or die "Apache make failed: $?"; system("make install") =3D=3D 0 or die "Apache make install failed: $?"; # clean up unneeded apache directories my $KrangRoot =3D $ENV{KRANG_ROOT}; system("rm -rf $KrangRoot/apache/man $KrangRoot/apache/htdocs/*"); I have no idea why or what to do (haven't found any answers in the archive = yet). Suggestions are most appreciated. |