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

I am wholly unable to get CPAN or CPANPLUS to install any local bundles at all. As an example...
I create a bundle TestBundle.pm
package TestBundle $VERSION='0.01'; 1; __END__ =head1 NAME TestBundle - Test Bundle =head1 CONTENTS BSD::Resource

I then move to that directory, and cannot, for the life of me, get that module to load. I really want to load use it with CPANPLUS::Backend, but I can't even get it to work with the suggested command line.
e.g.
perl -I`pwd` -MCPANPLUS -e 'install "TestBundle"' results in [ERROR] No such module 'TestBundle'. Likewise perl -I`pwd` -MCPANPLUS -e 'install "TestBundle"' fails with the equivalent CPAN error.

Since I can't even do this, I certainly can't use CPANPLUS::Backend to get the list of modules in the Bundle to test for pre-requisites, which is my primary goal.

What am I doing wrong? I know I'm missing something pretty obvious, since there aren't any other complaints I can find about this, either on Usenet or on the web.

Replies are listed 'Best First'.
Re: Installing Local Bundles with CPANPLUS::Backend?
by PodMaster (Abbot) on Apr 16, 2005 at 08:07 UTC
    What am I doing wrong? I know I'm missing something pretty obvious, since there aren't any other complaints I can find about this, either on Usenet or on the web.
    If you check the current CPANPLUS documentation, you'll see no mention of any install function being able to install bundles not on CPAN. IIRC in the past this was possible, but apparently it's been overlooked in the latest version (there's been lots of refactoring). You should report this to the CPANPLUS folks.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.