Re: How to manage various CPAN modules as a package for distribution purpose?

[email protected] (Xinhuan Zheng) Thu, 1 Feb 2018 13:43:48 +0000
Newsgroups perl.cpan.discuss
Message-ID <D6988339.26D0A%[email protected]>
--_000_D698833926D0Axzhengchristianbookcom_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hello Gonzalo,

Good morning. Thanks for your reply. I just found perlbrew is a great tool:=
 http://search.cpan.org/~gugod/App-perlbrew-0.82/bin/perlbrew. Does it have=
 ability to create a package of local perl the interpreter and all its asso=
ciated modules for easy distribution? I don=92t see such command options.
Thanks,

- xinhuan

From: Gonzalo Barco <[email protected]<mailto:[email protected]>>
Date: Wednesday, January 31, 2018 at 3:46 PM
To: Xinhuan Zheng <[email protected]<mailto:[email protected]=
>>
Cc: "[email protected]<mailto:[email protected]>" <cpan-discuss@per=
l.org<mailto:[email protected]>>
Subject: Re: How to manage various CPAN modules as a package for distributi=
on purpose?

I suggest perlbrew.
I know a 3000000+ line project with 400+ servers to deploy using perlbrew.
Never "misses" the deploy path for libs.

Also check out local::lib and Carton for some specific scenarios you might =
want to support.

Regards,
gonzalo

On Jan 31, 2018 1:18 PM, "Xinhuan Zheng" <[email protected]<mailto:x=
[email protected]>> wrote:
Dear CPAN,

We are using Perl CPAN modules a lot. From time to time we need to build va=
rious CPAN modules for various our projects. However, we want to have a way=
 to bundle them in one package so that this package can be easily distribut=
ed into various environments. What is best way to manage CPAN modules as a =
package? Note we are not using Active Perl. We use Unix/Linux platform dist=
ributed Perl.

Another related question, for some reason, if a particular CPAN module we n=
eed requires a specific Perl version, we normally need to install local ver=
sion of Perl, instead of using Perl from OS distribution. What is best way =
of managing two versions of Perl on same host because what would mean there=
 might be two cpan paths and Perl modules to be installed could go to wrong=
 Perl library path.

Thanks,

- xinhuan


--_000_D698833926D0Axzhengchristianbookcom_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <[email protected]>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>Hello Gonzalo,</div>
<div><br>
</div>
<div>Good morning. Thanks for your reply. I just found perlbrew is a great =
tool:&nbsp;<a href=3D"http://search.cpan.org/~gugod/App-perlbrew-0.82/bin/p=
erlbrew">http://search.cpan.org/~gugod/App-perlbrew-0.82/bin/perlbrew</a>. =
Does it have ability to create a package
 of local perl the interpreter and all its associated modules for easy dist=
ribution? I don=92t see such command options.</div>
<div>Thanks,</div>
<div><br>
</div>
<div>- xinhuan</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>Gonzalo Barco &lt;<a href=3D"=
mailto:[email protected]">[email protected]</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Wednesday, January 31, 2018 a=
t 3:46 PM<br>
<span style=3D"font-weight:bold">To: </span>Xinhuan Zheng &lt;<a href=3D"ma=
ilto:[email protected]">[email protected]</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>&quot;<a href=3D"mailto:cpan-di=
[email protected]">[email protected]</a>&quot; &lt;<a href=3D"mailto:cpan-=
[email protected]">[email protected]</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: How to manage various =
CPAN modules as a package for distribution purpose?<br>
</div>
<div><br>
</div>
<div>
<div>
<div dir=3D"auto">I suggest perlbrew.
<div dir=3D"auto">I know a 3000000&#43; line project with 400&#43; servers =
to deploy using perlbrew.</div>
<div dir=3D"auto">Never &quot;misses&quot; the deploy path for libs.</div>
<div dir=3D"auto"><br>
</div>
<div dir=3D"auto">Also check out local::lib and Carton for some specific sc=
enarios you might want to support.</div>
<div dir=3D"auto"><br>
</div>
<div dir=3D"auto">Regards,</div>
<div dir=3D"auto">gonzalo</div>
</div>
<div class=3D"gmail_extra"><br>
<div class=3D"gmail_quote">On Jan 31, 2018 1:18 PM, &quot;Xinhuan Zheng&quo=
t; &lt;<a href=3D"mailto:[email protected]">[email protected]=
</a>&gt; wrote:<br type=3D"attribution">
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">
<div style=3D"word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-fam=
ily:Calibri,sans-serif">
<div>Dear CPAN,</div>
<div><br>
</div>
<div>We are using Perl CPAN modules a lot. From time to time we need to bui=
ld various CPAN modules for various our projects. However, we want to have =
a way to bundle them in one package so that this package can be easily dist=
ributed into various environments.
 What is best way to manage CPAN modules as a package? Note we are not usin=
g Active Perl. We use Unix/Linux platform distributed Perl.&nbsp;</div>
<div><br>
</div>
<div>Another related question, for some reason, if a particular CPAN module=
 we need requires a specific Perl version, we normally need to install loca=
l version of Perl, instead of using Perl from OS distribution. What is best=
 way of managing two versions of
 Perl on same host because what would mean there might be two cpan paths an=
d Perl modules to be installed could go to wrong Perl library path.</div>
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>- xinhuan</div>
<br>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</span>
</body>
</html>

--_000_D698833926D0Axzhengchristianbookcom_--