Esteemed monks,

Please excuse me if this is a little OT.

I have been trying to install Apache::Request from CPAN. It requires Apache::Test, when I try to build Apache::Test I get the following:

/usr/bin/make -j3 -- OK Running make test /usr/local/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -clean *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -clean APACHE_GROUP= APXS= APACHE_PORT= APACHE_USER= APACHE= \ /usr/local/bin/perl -Iblib/arch -Iblib/lib \ t/TEST -verbose=0 *** setting ulimit to allow core files ulimit -c unlimited; t/TEST -verbose=0 *** root mode: changing the files ownership to 'nobody' (99:99) *** su -m nobody -c '/usr/local/bin/perl -e "print -r q{/root/.cpan/bu +ild/Apache-Test-1.05/t} && -w _ && -x _ ? q{OK} : q{NOK}"' *** result: NOK !!! 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: /root/.cpan/build/Apache-Test-1.05/t must be 'rwx' by user 'nobody', so Apache can read and write under tha +t path. There several ways to resolve this issue. For example move '/root/.cpan/build/Apache-Test-1.05/t' to '/tmp/' and repeat the 'make + test' phase. You can test whether the location is good by running the following tes +t: % su -m nobody -c '/usr/local/bin/perl -e "print -r q{/root/.cpan/bu +ild/Apache-Test-1.05/t} && -w _ && -x _ ? q{OK} : q{NOK}"' make: *** [run_tests] Error 9 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force cpan>
Now, yes, I am running the install under root. But I went and chmod'ed the directories and chown'ed them and to no availa it would seem.

Does anybody have any suggestions?

jdtoronto


In reply to Trouble installing Apache::Test as root. by jdtoronto

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.