Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

install .pm

by cxg040 (Initiate)
on Jun 03, 2014 at 19:07 UTC ( #1088489=perlquestion: print w/replies, xml ) Need Help??
cxg040 has asked for the wisdom of the Perl Monks concerning the following question:

Hi I have a module I want to use to calculate hypergeometric tail. How can I use this module in my script. I have tried including path also. I am not a regular perl programmer. Thanks!

Replies are listed 'Best First'.
Re: install .pm
by karlgoethebier (Monsignor) on Jun 03, 2014 at 19:33 UTC
    "..I have a module"

    I guess. Try:

    use lib q(/path/to/lib); use PDF;

    Put in /path/to/lib

    See lib

    Regards, Karl

    «The Crux of the Biscuit is the Apostrophe»

      Hi This returns "Can't locate CorneliOS/Lib/PDF/ in @INC". The file looks like this: package CorneliOS::Lib::PDF; use strict; use lib "$ENV{'DOCUMENT_ROOT'}/.__sys"; use CorneliOS::Lib::PDF::Create; use CorneliOS::Lib::PDF::POD2PDF; 1; __END__

        Looks like you are missing another package.

        Regards, Karl

        «The Crux of the Biscuit is the Apostrophe»

Re: install .pm
by InfiniteSilence (Curate) on Jun 03, 2014 at 19:39 UTC
    sudo cpan -i PDF

    Celebrate Intellectual Diversity

      This returned

      CPAN: Storable loaded ok (v2.18)

      Going to read /root/.cpan/Metadata

      Database was generated on Tue, 03 Jun 2014 17:53:02 GMT CPAN: YAML loaded ok (v0.90) Going to read /root/.cpan/build/ ............................................................................DONE

      Found 74 old builds, restored the state of 74 Warning: Cannot install, don't know what it is.

      Try the command i / to find objects with matching identifiers.

      CPAN: Time::HiRes loaded ok (v1.9711)

        Try ... cpan ANTRO/PDF-111.tgz
Re: install .pm
by taint (Chaplain) on Jun 03, 2014 at 20:08 UTC
    Greetings, cxg040.

    You're going to need to make sure it gets into your @INC. That's the equivalent of $PATH, or %PATH%, in your shell, or command prompt. Have a look at @INC for better/greater details. Where this, and other related things are concerned. :)

    Best wishes.


    ˇλɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1088489]
Approved by taint
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2018-07-21 09:11 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (445 votes). Check out past polls.