I want to install a mod_perl enabled apache version into my home directory /home/andrew

I unpack apache and mod_perl and then issue:

perl Makefile.PL APACHE_SRC=../apache_1.3.33/src APACHE_PREFIX=/home/andrew/apache DO_HTTPD=1 USE_APACI=1

make and make test work fine but when I go to make install it complains:

Warning: You do not have permissions to install into /usr/lib/perl5/si +te_perl/i386-linux at /home/andrew/cpan/lib/ExtUtils/Install.pm line +114. Cannot forceunlink /usr/lib/perl5/site_perl/i386-linux/auto/Apache/Sym +bol/Symbol.so: Permission denied at /usr/lib/perl5/File/Find.pm line +495 make: *** [pure_site_install] Error 255

It looks like it is trying to install perl modules into the system-wide directory and not in my home directory.

When I cpan install modules they go to /home/andrew/cpan just fine.

How do I tell the mod_perl installer to put its modules into my home directory and not the system-wide one?

Moreover, is there a generalized way to do this from a perl Makefile.PL?

-Andrew.


Andrew Tomazos  |  andrew@tomazos.com  |  www.tomazos.com

In reply to Installing mod_perl without root access by tomazos

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.