Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Installing CPAN modules in production system

Reply
Thread Tools

Installing CPAN modules in production system

 
 
Yogi
Guest
Posts: n/a
 
      08-07-2008
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
 
Reply With Quote
 
 
 
 
souporpower@gmail.com
Guest
Posts: n/a
 
      08-07-2008
On Aug 7, 3:43*am, Yogi <yogeshkagra...@gmail.com> wrote:
> 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
 
Reply With Quote
 
 
 
 
Ted Zlatanov
Guest
Posts: n/a
 
      08-07-2008
On Thu, 7 Aug 2008 00:43:35 -0700 (PDT) Yogi <> wrote:

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/...prerequisites?

Ted
 
Reply With Quote
 
RedGrittyBrick
Guest
Posts: n/a
 
      08-07-2008
Yogi wrote:
> 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"

--
RGB
 
Reply With Quote
 
Yogi
Guest
Posts: n/a
 
      08-07-2008
On Aug 7, 6:51*pm, RedGrittyBrick <RedGrittyBr...@SpamWeary.foo>
wrote:
> Yogi wrote:
> > 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"
>
> --
> RGB


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.
 
Reply With Quote
 
Tad J McClellan
Guest
Posts: n/a
 
      08-08-2008
RedGrittyBrick <> wrote:

> 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?


--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher\100cmdat/"
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 03-07-2011 11:00 PM
FAQ 2.6 What modules and extensions are available for Perl? What is CPAN? What does CPAN/src/... mean? PerlFAQ Server Perl Misc 0 01-24-2011 11:00 PM
OS X, installing modules from CPAN Justin C Perl Misc 3 11-15-2007 09:19 PM
installing modules to ActiveState Perl from cpan downloads ioneabu@yahoo.com Perl Misc 2 02-10-2005 04:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57