I've been struggling to not mess up my linux (Ubuntu 7.10) installation like I've previously used to do. Now, with a rather fresh install of Ubuntu (and updates), I wanted to avoid having issues with aptitude and cpan running in each others way.

So, I've set PERL5LIB to ~/perl5lib and cpan seems happy to run without sudo. Somehow I've got a helping of ~/share with ~/share/perl/5.8.8 and a lot of the modules I've installed or upgraded with cpan seems to go there, but well, it seems ok.

Now, I wanted to install SQL::Translator, but the install bails out complaining:

Sorry, PREFIX is not supported. See the Module::Build documentation for 'destdir' or 'install_base' instead.

Well, I added a ~/.modulebuildrc file with sole content:

install --install_path /home/kai/perl5lib
but the same "Sorry, PREFIX ..." results.

I need some suggestions here now, or some better (super|google)search-terms than I've managed to come up with myself.

Also, I've tried to set --install_path to the same as PERL5LIB, is that wise? silly? enough?

Update:
Thanks for all the good sugestions. They will probably help, but I'm not entirely there yet, so more suggestions are still welcome.

Update 2:
I've got SQL::Translator installed using

look SQL::Translator perl Build.PL --install_base /home/kai/perl5lib ./Build test ./Build install
although I had to work my way backwards through a couple of dependencies that also barked the same way.
I'd really like to have .modulebuildrc correctly set up and working.
Now to new searches...
Update 3:
The version I'm using:
perl -MModule::Build -e 'print "$Module::Build::VERSION \n";' 0.2808

In reply to What to tell Module::Build, and where? by stiller

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.