Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Unable to install a particular CPAN module using CPAN

by sierrathedog04 (Hermit)
on Jul 05, 2010 at 18:28 UTC ( [id://848095]=perlquestion: print w/replies, xml ) Need Help??

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

The command sudo perl -MCPAN -e 'install Module::Name' usually finds and installs the CPAN module I want on my Mac/Perl 5.10 installation.

I wish to download and install the fp module at http://search.cpan.org/~stevan/fp-0.03/lib/fp.pm. The source code identifies this module as being named fp.

But when I run from the command line:

sudo perl -MCPAN -e 'install fp'

I get the following error:

Warning: Cannot install fp, don't know what it is.

The error message tells me to us "i /fp/" but it doesn't give any examples of how to do that from the command line. Can anybody help?

  • Comment on Unable to install a particular CPAN module using CPAN

Replies are listed 'Best First'.
Re: Unable to install a particular CPAN module using CPAN
by LTjake (Prior) on Jul 05, 2010 at 18:47 UTC

    It appears that fp was not indexed by PAUSE because it is owned by KARASIK and not STEVAN.

    A grep of the 02packages.details.txt.gz file shows the following:

    fp::functionals 0.02 S/ST/STEVAN/fp-0.03.tar.gz fp::lambda 0.01 S/ST/STEVAN/fp-0.03.tar.gz fp::lambda::utils 0.01 S/ST/STEVAN/fp-0.03.tar.gz

    Installing fp::functionals should do the trick, except that it fails tests for me. You'll have to force install it.

    --
    "Go up to the next female stranger you see and tell her that her "body is a wonderland."
    My hypothesis is that she’ll be too busy laughing at you to even bother slapping you.
    " (src)

      The following worked as root:
      perl -MCPAN -e shell
      force install fp::functionals
      Thanks to the people who helped!
      Sweet zombie Jesus, where did you find that fp is owned by me?! :o Not that I mind, but it's totally a surprise, it almost woke me up

        I did a peek at the permissions for fp on PAUSE.

        FWIW, I've noticed you have a large number of lowercase namespaces reserved (see the bottom of this list). A little bit of investigation leads to a guess that an upload of the Prima dist happened to index all of the examples, which had a number of namespaces used. Perhaps you could go in to PAUSE and give up primary maintenance status of the namespaces you don't need?

        --
        "Go up to the next female stranger you see and tell her that her "body is a wonderland."
        My hypothesis is that she’ll be too busy laughing at you to even bother slapping you.
        " (src)

Re: Unable to install a particular CPAN module using CPAN
by Khen1950fx (Canon) on Jul 05, 2010 at 18:48 UTC
    You could do:
    sudo perl -MCPAN -e 'install STEVAN/fp-0.03.tar.gz'
    Or from the cpan shell:
    cpan> install STEVAN/fp-0.03.tar.gz
    Or from the command line:
    cpan STEVAN/fp-0.03.tar.gz

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://848095]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-04-18 12:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found