Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Installing mod_perl without root access

by tomazos (Deacon)
on Aug 01, 2005 at 13:32 UTC ( [id://479889]=perlquestion: print w/replies, xml ) Need Help??

tomazos has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: Installing mod_perl without root access
by davorg (Chancellor) on Aug 01, 2005 at 13:37 UTC

    Add the option

    PREFIX=/home/andrew/cpan

    when you run Makefile.PL.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

Re: Installing mod_perl without root access
by bepi (Deacon) on Aug 01, 2005 at 14:49 UTC

      If he want to use mod_perl 2.x he's going to have to upgrade apache too (Wrong Apache mod_perl combo).

      "Cogito cogito ergo cogito sum - I think that I think, therefore I think that I am." Ambrose Bierce

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://479889]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (None)
    As of 2024-04-25 00:51 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found