Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: duplicate modules any concern?

by compused (Acolyte)
on Feb 18, 2012 at 23:43 UTC ( [id://954826]=note: print w/replies, xml ) Need Help??


in reply to Re: duplicate modules any concern?
in thread duplicate modules any concern?

[~] # perl -MYAML -E 'say $INC{"YAML.pm"} # Please' /opt/lib/perl5/site_/5.14.2/YAML.pm # you're welcome!

To be honest, I am confused about library path settings
During perl install I was asked this question and entered config as shown below:

1. Pathname where the private library files will reside? (~name ok) [/opt/lib/perl5/5.14.2]

-->so is this the same as the cpan <mbuildpl_arg> setting...so if not already set, when using CPAN should I set:

cpan> o conf makepl_arg "PREFIX=/opt"

2. Another question during the perl install was:

Pathname for the site-specific library files? (~name ok) [/opt/lib/perl5/site_/5.14.2]

--> does this relate to any of the 'o conf' settings?

3. Another question I have is...can you set such parameters as cpan's <cpan_home>, <build_dir>, <mbuildpl_arg> or <makepl_arg> during a tarball installation of perl?
The problem is that I am installing it on a qnap NAS device in which /root is on a RAM drive with limited space. You can't accept the default settings. I was hoping to write the steps up on the qnap forum.

4. A final question which arose from another posting here is, should I have set:

cpan> o conf mbuildpl_arg "--install_base /opt"

and how does this differ from

cpan> o conf makepl_arg "PREFIX=/opt" )

?

Thanks

Replies are listed 'Best First'.
Re^3: duplicate modules any concern?
by JavaFan (Canon) on Feb 19, 2012 at 10:15 UTC
    I do not know the answers to 1) and 2). For 3), the answer is no. Basically, for the same reason that you don't get to set your .exrc while compiling your Linux. Cpan is a tool, and it will allow configuration the first time it's run by a user. Different users get to pick different settings. For question 4), I'm unfamiliar with those settings, but judging from their spelling, one seems to be related to Build.pl, the other to Makefile.pl. But this is just a guess, assuming the author(s) picked sensible names.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (6)
As of 2024-04-23 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found