On Monday 19 July 2004, Rajesh Pethe wrote:
> Dear Sir,
>
> I've statically  compiled apache-1.3.31 and
> mod_perl-1.29  and now I need use Apache::Request in
> my scripts but the module is'nt present on my system.
> I've downloaded it from CPAN but 'perl Makefile.PL'
> results in error due to absence of needed version of
> Apache::Test module.
>
> Next i downloaded 'Apache::Test' and the two steps of
> 'perl Makefile.PL' and make are OK but 'make test'
> fails giving these output :
> '
> query for SBINDIR failed
> query for TARGET failed
> query for SYSCONFDIR failed
> query for PREFIX failed
> .....
> .....
> etc.  '
>
> and
>
> [error] you are running the test under root etc.
>

Read all the error message!

[  error] You are running the test suite under user 'root'.
Apache cannot spawn child processes as 'root', therefore
we attempt to run the test suite with user 'nobody' (99:99).
The problem is that the path (including all parent directories):
  /root/addon/Apache-Test-1.12/t
must be 'rwx' by user 'nobody', so Apache can read and write under that
path.

There are several ways to resolve this issue. One is to move and
rebuild the distribution to '/tmp/' and repeat the 'make test'
phase. The other is not to run 'make test' as root (i.e. building
under your /home/user directory).

You can test whether some directory is suitable for 'make test' under
'root', by running a simple test. For example to test a directory
'/root/addon/Apache-Test-1.12/t', run:

  % "/usr/bin/perl" -Mlib=lib -MApache::TestRun -e 'eval { 
Apache::TestRun::run_root_fs_test(99, 99, q[/root/addon/Apache-Test-1.12/t]) 
}';


Personally, I build it under /tmp, and it works fine. Use the same place for 
Apache::Request.

Richard



-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to