Problem installing Apache::Request

I think this is really a problem installing Apache:Test which is a
dependency of Apache::Request.

Doing perl -MCPAN -e’install Apache::Test’ works. It prompts me:

'Please provide a full path to ‘httpd’ executable:'
To which I put: /usr/local/apache/bin/httpd (I’ve tried both this and
without httpd)

Then ‘Please provide a full path to (optional) ‘apxs’ executable:’
/usr/local/apache/bin/apxs (again, tried it both ways)

I then get these messages. I’ve tried everything I can think of and I can’t
get passed this.

[warning] rerunning ‘/usr/local/bin/perl
/root/.cpan/build/Apache-Test-1.11/t/TEST -bugreport -verbose=0’ with new
config opts
APXS (/usr/local/apache/bin/apxs) query for SBINDIR failed
APXS (/usr/local/apache/bin/apxs) query for TARGET failed
APXS (/usr/local/apache/bin/apxs) query for SYSCONFDIR failed
APXS (/usr/local/apache/bin/apxs) query for PREFIX failed
APXS (/usr/local/apache/bin/apxs) query for LIBEXECDIR failed
APXS (/usr/local/apache/bin/apxs) query for LIBEXECDIR failed
[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.11/t
"/usr/local/bin/perl" -Mlib=lib -MApache::TestRun -e ‘eval {
Apache::TestRun::run_root_fs_test(99, 99,
q[/root/.cpan/build/Apache-Test-1.11/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.11/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).

Any help would be appreciated. This is my last missing dependency and I’ve
been working on this one most of the day.
Running Apache 1.3.31 and mod_perl 1.29

Thanks!
Brett

You need to build the module in a directory that is readable
by user nobody.

See: perldoc CPAN

You need to change build_dir.

-ToddOn Thu, Jun 10, 2004 at 05:13:24PM -0500, Brett Barnhart wrote:

[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.11/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).

Thanks Todd, I finally got this installed. Thanks to everyone for their
help.

trying to get mail sucked into the RT now… :slight_smile: