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

Re: Re: Re: Find file name

by broquaint (Abbot)
on Nov 11, 2003 at 17:10 UTC ( #306272=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Find file name
in thread Find file name

If you've got privileged access to your machine then you can simply do

perl -MCPAN -e 'install q[File::Find::Rule]'
to install the module. However, if you're an unprivileged user you just need to set the path to somewhere that you can write to e.g
shell> perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.65) ReadLine support enabled cpan> o conf makepl_arg PREFIX="/your/path/to/perl/lib"
Or if you're installing from an unpacked tarball, just pass the PREFIX parameter to the Makefile.PL e.g
perl Makefile.PL PREFIX=/your/path/to/perl/lib
Then just add /your/path/to/perl/lib to @INC either through lib or the environment variable $PERL5LIB e.g
use lib '/your/path/to/perl/lib'; use File::Find::Rule;
HTH

_________
broquaint


Comment on Re: Re: Re: Find file name
Select or Download Code
Re: Re: Re: Re: Find file name
by blueapache (Acolyte) on Nov 11, 2003 at 17:20 UTC
    I'm definately an unprivileged user and
    shell> perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.65) ReadLine support enabled cpan> o conf makepl_arg PREFIX="/your/path/to/perl/lib"
    - what is this doing exactly ? I am interested but I doubt whether I could do this anyway for fear of messing the system up. Thanks
      It just passes the PREFIX to the Makefile.PL when the module is being built automatically, as described in the manpage:
      makepl_arg arguments passed to 'perl Makefile.PL
      Which allows you to install module via CPAN to a user-defined path.
      HTH

      _________
      broquaint

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://306272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2014-08-28 04:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (256 votes), past polls