[Catalyst] CPAN, Module::Build, and "Sorry, PREFIX is not supported"

Matt S Trout dbix-class at trout.me.uk
Sat Nov 19 22:58:59 CET 2005


On Fri, Nov 18, 2005 at 08:39:02PM -0800, David Christensen wrote:
> catalyst:
> 
> I am attempting to install Bundle::Catalyst per Catalyst::Manual::Intro
> (http://search.cpan.org/~mramberg/Catalyst-5.56/lib/Catalyst/Manual/Intro.pod)
> into my user account.  While I might be able to install it as root on my
> development server, I don't have this option on my shared hosting account
> production server.

I added my technique for shared hosting installs to the wiki some time ago.

http://dev.catalyst.perl.org/wiki/SolvedIssues#si.70 -

nstalling MakeMaker? *and* Module::Build modules to your homedir with CPAN

In .bashrc:

    export PATH=$HOME/local/bin:$HOME/local/script:$PATH

    perlversion=`perl -v | grep 'built for' | awk '{print $4}' | sed -e 's/v//;'`

    export PERL5LIB=$HOME/local/share/perl/$perlversion:$HOME/local/lib/perl/$perlversion:$HOME/local/lib:$PERL5LIB

In .cpan/CPAN/MyConfig?.pm (configure first then add this):

    'make_install_arg' => qq[SITEPREFIX=$ENV{HOME}/local],

    'makepl_arg' => qq[INSTALLDIRS=site install_base=$ENV{HOME}/local],


-- 
     Matt S Trout       Specialists in Perl consulting, web development, and
  Technical Director    UNIX/Linux systems architecture and automation. Mail
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list