J
John Oliver
I'm trying to install Apache::Test via CPAN, and run into:
[warning] running with new config opts: /usr/bin/perl
/root/.cpan/build/Apache-Test-1.29/t/TEST -bugreport -verbose=0 -httpd
/usr/sbin/httpd -apxs /usr/sbin/apxs
[warning] root mode: changing the files ownership to 'nobody' (99:99)
[warning] testing whether 'nobody' is able to -rwx
/root/.cpan/build/Apache-Test-1.29/t
"/usr/bin/perl" -Mlib=lib -MApache::TestRun -e 'eval {
Apache::TestRun::run_root_fs_test(99, 99,
q[/root/.cpan/build/Apache-Test-1.29/t]) }';
[warning] result:
[ 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/.cpan/build/Apache-Test-1.29/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).
However, "fixing" /root/.cpan/build/Apache-Test-1.29/ doesn't help
because CPAN removes it and replaces it when I try again.
On top of that, Apache httpd runs as user "apache", not "nobody".
Can I get CPAN to install this properly, or is a manual install the only
way to get it installed?
[warning] running with new config opts: /usr/bin/perl
/root/.cpan/build/Apache-Test-1.29/t/TEST -bugreport -verbose=0 -httpd
/usr/sbin/httpd -apxs /usr/sbin/apxs
[warning] root mode: changing the files ownership to 'nobody' (99:99)
[warning] testing whether 'nobody' is able to -rwx
/root/.cpan/build/Apache-Test-1.29/t
"/usr/bin/perl" -Mlib=lib -MApache::TestRun -e 'eval {
Apache::TestRun::run_root_fs_test(99, 99,
q[/root/.cpan/build/Apache-Test-1.29/t]) }';
[warning] result:
[ 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/.cpan/build/Apache-Test-1.29/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).
However, "fixing" /root/.cpan/build/Apache-Test-1.29/ doesn't help
because CPAN removes it and replaces it when I try again.
On top of that, Apache httpd runs as user "apache", not "nobody".
Can I get CPAN to install this properly, or is a manual install the only
way to get it installed?