perlquestion
stiller
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.<p>
So, I've set <c>PERL5LIB</c> to <c>~/perl5lib</c> and cpan seems happy to run without sudo. Somehow I've got a helping of <c>~/share</c> with <c>~/share/perl/5.8.8</c> and a lot of the modules I've installed or upgraded with cpan seems to go there, but well, it seems ok.<p>
Now, I wanted to install <c>SQL::Translator</c>, but the install bails out complaining:<c>
Sorry, PREFIX is not supported. See the Module::Build
documentation for 'destdir' or 'install_base' instead.</c>
<p>
Well, I added a <c>~/.modulebuildrc</c> file with sole content:<c>
install --install_path /home/kai/perl5lib
</c>
but the same "Sorry, PREFIX ..." results.<p>
I need some suggestions here now, or some better (super|google)search-terms than I've managed to come up with myself.
<p>
Also, I've tried to set <c>--install_path</c> to the same as <c>PERL5LIB</c>, is that wise? silly? enough?
<p>
<b>Update:</b><br>
Thanks for all the good sugestions. They will probably help, but I'm not entirely there yet, so more suggestions are still welcome.<p>
<b>Update 2:</b><br>
I've got SQL::Translator installed using <br>
<c>look SQL::Translator
perl Build.PL --install_base /home/kai/perl5lib
./Build test
./Build install
</c> although I had to work my way backwards through a couple of dependencies that also barked the same way. <br><b>I'd really like to have <c>.modulebuildrc</c> correctly set up and working.</b>
<br>Now to new searches...
<br>
<b>Update 3:</b><br>
The version I'm using:<c>
perl -MModule::Build -e 'print "$Module::Build::VERSION \n";'
0.2808
</c>