Installing CPAN modules in production system

Y

Yogi

Hi All,

I am a Perl developer writing some programs to read mails using IMAP/
POP3 modules (and some other modules as well). I have installed these
modules in our development machine (after trying hard). Now we have
to ship this product to our client. My question is, how to make
depedent modules available in production envt? Merely copying of
these modules to @INC location will work or sysadmin will have to use
CPAN interface to install these modules?

My worry is our client might not be willing to install something
directly to production system (Linux in this case). Any help as how
these kind of scenarios are dealt?

Thanks a lot for your suggestions.

Regards,
-Y
 
S

souporpower

Hi All,

I am a Perl developer writing some programs to read mails using IMAP/
POP3 modules (and some other modules as well).  I have installed these
modules in our development machine (after trying hard).  Now we have
to ship this product to our client.  My question is, how to make
depedent modules available in production envt?  Merely copying of
these modules to @INC location will work or sysadmin will have to use
CPAN interface to install these modules?

My worry is our client might not be willing to install something
directly to production system (Linux in this case).  Any help as how
these kind of scenarios are dealt?

Thanks a lot for your suggestions.

Regards,
-Y

When I shopped around for hosting of Perl scripts at godaddy, yahoo,
etc., I was told that they'd
support a few standard modules (e.g. WWW::Mechanize was not installed)
and won't install any
new ones. Looks like you need to talk to the Linux admin. AFAIK, you
can hot-deploy perl modules
if you are the super user.

HTH
 
T

Ted Zlatanov

Y> I am a Perl developer writing some programs to read mails using IMAP/
Y> POP3 modules (and some other modules as well). I have installed these
Y> modules in our development machine (after trying hard). Now we have
Y> to ship this product to our client. My question is, how to make
Y> depedent modules available in production envt? Merely copying of
Y> these modules to @INC location will work or sysadmin will have to use
Y> CPAN interface to install these modules?

It's best to use CPAN. If the modules are pure Perl you can just copy
them, but it will create administration issues.

Y> My worry is our client might not be willing to install something
Y> directly to production system (Linux in this case). Any help as how
Y> these kind of scenarios are dealt?

They are installing your programs, right? Just ask them to locate the
modules under a different directory and do `use lib ...' to use it.

You can also use PAR, see http://search.cpan.org/dist/PAR/lib/PAR/FAQ.pod#Can_PAR_bundle_all_its_prerequisites?

Ted
 
R

RedGrittyBrick

Yogi said:
Hi All,

I am a Perl developer writing some programs to read mails using IMAP/
POP3 modules (and some other modules as well). I have installed these
modules in our development machine (after trying hard). Now we have
to ship this product to our client. My question is, how to make
depedent modules available in production envt? Merely copying of
these modules to @INC location will work or sysadmin will have to use
CPAN interface to install these modules?

My worry is our client might not be willing to install something
directly to production system (Linux in this case). Any help as how
these kind of scenarios are dealt?

If you can install a Perl script, you can probably install most perl
modules in any subdirectory you have write access to, without needing
privileged/root/administrator access.

There's probably an answer in perlfaq*. I can't find it, but this is close:

perldoc -q "add a directory to my include path"
 
Y

Yogi

If you can install a Perl script, you can probably install most perl
modules in any subdirectory you have write access to, without needing
privileged/root/administrator access.

There's probably an answer in perlfaq*. I can't find it, but this is close:

perldoc -q "add a directory to my include path"

Yeah. I was too thinking about PAR to ship required modules (I
checked for document for win32 envt) but was little worried as that
document was talking something about DLLs. As RBG pointed out, I might
use PERL5LIB envt variable to include other lib directories. Pl
correct me if I am wrong.

Thanks again.
 
T

Tad J McClellan

RedGrittyBrick said:
There's probably an answer in perlfaq*. I can't find it, but this is close:


perldoc -q module

How do I keep my own module/library directory?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top