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

Although Exception::Lite is visible on the CPAN web interface, I cannot seem to find it with the CPAN shell (on CentOS 5, Perl 5.8.8.) Anyone else having trouble with this?

Replies are listed 'Best First'.
Re: Exception::Lite not on CPAN?
by Your Mother (Archbishop) on Aug 21, 2013 at 15:59 UTC

    You can install dev releases with cpanm pretty easily...

    cpanm Exception::Lite ! Finding Exception::Lite on cpanmetadb failed. ! Finding Exception::Lite () on mirror http://www.cpan.org failed. ! Couldn't find module or a distribution Exception::Lite () cpanm Exception::Lite --dev --> Working on Exception::Lite Fetching http://www.cpan.org/authors/id/E/EL/ELISHEVA/Exception-Lite-0 +.999_003.tar.gz ... OK Configuring Exception-Lite-0.999_003 ... OK Building and testing Exception-Lite-0.999_003 ... FAIL ! Installing Exception::Lite failed. See /home/moo/.cpanm/work/1377100 +570.9392/build.log for details. Retry with --force to force install i +t.

    ...when they are installable anyway. Seems to be a problem (for me at least) 'Missing argument in testWarningsAndExceptions::A->new at /home/moo/.cpanm/work/1377100661.9618/Exception-Lite-0.999_003/blib/lib/Exception/Lite.pm line 482

Re: Exception::Lite not on CPAN?
by toolic (Bishop) on Aug 21, 2013 at 15:49 UTC
    I cannot install Exception::Lite with cpan either (I'm on perl 5.12.2):
    cpan Exception::Lite ... Warning: Cannot install Exception::Lite, don't know what it is.

    Metacpan cannot find it either: https://metacpan.org/search?q=Exception%3A%3ALite

    search.cpan.org shows it as a ** DEVELOPER RELEASE ** (could that be an issue?)

    Update: nevermind. In the meantime, you could try downloading the tar file and installing, and submit an RT bug.

      Yes, it's because there have been only dev releases. Supply a qualified name:

      cpan ELISHEVA/Exception-Lite-0.999_004.tar.gz

      cpanminus, as usual, comes out on top. :)

      cpanm --dev Exception::Lite

Re: Exception::Lite not on CPAN?
by Khen1950fx (Canon) on Aug 22, 2013 at 02:01 UTC
    Exception::Lite uses a null filename at line 2 which keeps the Makefile.PL from working properly. You can get around that with CPAN by doing this:
    cpan> look ELISHEVA/Exception-Lite-0.999_004.tar.gz
    CPAN will drop to a temporary directory, then do
    perl Build.PL ./Build ./Build test ./Build install
      What do you mean by "null filename at line 2"?
      لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
        $ cpanm --look --dev Exception::Lite --> Working on Exception::Lite Fetching http://www.cpan.org/authors/id/E/EL/ELISHEVA/Exception-Lite-0 +.999_003.tar.gz ... OK Entering …/Exception-Lite-0.999_003 with /bin/bash Exception-Lite-0.999_003$ perl Makefile.PL Null filename used at Makefile.PL line 2. Exception-Lite-0.999_003$ echo $? 255
        The require statement is broken.