Re: [CentOS] scripting CPAN installs

2010-04-23 Thread Dave Cross
On 15 April 2010 21:23, Alan McKay alan.mc...@gmail.com wrote: Hey folks, Maybe there is a Perl/CPAN list that is a better place to ask this? If so, maybe someone can point me to it. Anyway, I want to be able to script the installation of a bunch of CPAN modules, and the first basic problem

Re: [CentOS] scripting CPAN installs

2010-04-21 Thread Alan McKay
On Fri, Apr 16, 2010 at 9:26 AM, Tomas Ruprich rupr...@uikt.mendelu.cz wrote: http://www.developertutorials.com/tutorials/cgi-perl/automate-perl-module-deployment-050426/page4.html I am curious if you or anyone else is doing this. I spend all day yesterday on it - the scirpts as given just

Re: [CentOS] scripting CPAN installs

2010-04-21 Thread Les Mikesell
On 4/21/2010 9:00 AM, Alan McKay wrote: On Fri, Apr 16, 2010 at 9:26 AM, Tomas Ruprichrupr...@uikt.mendelu.cz wrote: http://www.developertutorials.com/tutorials/cgi-perl/automate-perl-module-deployment-050426/page4.html I am curious if you or anyone else is doing this. I spend all day

Re: [CentOS] scripting CPAN installs

2010-04-21 Thread Alan McKay
If you are going to put any work into it yourself, you really should set up a local yum repo and either copy in rpms from epel/rpmforge if they exist or use a CPAN-rpm tool to build them if they don't or you want something newer.  Then installing on any target machine is just yum install

Re: [CentOS] scripting CPAN installs

2010-04-21 Thread Joseph L. Casale
I'm leaning pretty heavily in this directly actually, just given how little progress I'm making with CPAN itself. Next step I guess is to see if all my packages are available in RPMs. rpmforge has a lot, the only pain you might encounter is the circular dependency hell you sometimes encounter

Re: [CentOS] scripting CPAN installs

2010-04-21 Thread Christoph Maser
Am Mittwoch, den 21.04.2010, 18:16 +0200 schrieb Joseph L. Casale: I'm leaning pretty heavily in this directly actually, just given how little progress I'm making with CPAN itself. Next step I guess is to see if all my packages are available in RPMs. rpmforge has a lot, the only pain you

Re: [CentOS] scripting CPAN installs

2010-04-20 Thread Tomas Ruprich
I think this could be done by cpan o conf prerequisites_policy follow cpan o conf commit and then set env PERL_MM_USE_DEFAULT=1 cpan or env PERL_MM_USE_DEFAULT=1 perl -MCPAN -e shell Tomas Mon, Apr 19, 2010 ve 04:24:21PM -0500, Les Mikesell napsal: On 4/19/2010 4:15 PM, Kahlil Hodgson

Re: [CentOS] scripting CPAN installs

2010-04-20 Thread Alan McKay
Thanks! On Tue, Apr 20, 2010 at 4:14 AM, Tomas Ruprich rupr...@uikt.mendelu.cz wrote: I think this could be done by cpan o conf prerequisites_policy follow cpan o conf commit and then set env PERL_MM_USE_DEFAULT=1 cpan or env PERL_MM_USE_DEFAULT=1 perl -MCPAN -e shell Tomas Mon,

Re: [CentOS] scripting CPAN installs

2010-04-20 Thread Alan McKay
OK, now I have this question when applying the autobundle I created, and I'd like to default it : Running the test suite is important to make sure that the module that you are about to install works on your system. If you choose not to run the test suite and you have a problem using this module,

Re: [CentOS] scripting CPAN installs

2010-04-20 Thread Alan McKay
And another one : CPAN.pm: Going to build D/DR/DROLSKY/HTML-Mason-1.45.tar.gz This module requires Module::Build to install itself. Install Module::Build now from CPAN? [y] -- “Don't eat anything you've ever seen advertised on TV” - Michael Pollan, author of In Defense of Food

Re: [CentOS] scripting CPAN installs

2010-04-19 Thread Kahlil Hodgson
On 04/17/2010 12:21 AM, Alan McKay wrote: Now my only problem seems to be that cpan does not allow me to specify yes to this question when it asks. e.g. like the -y option to yum Unsatisfied dependencies detected during [A/AN/ANDK/CPAN-1.9402.tar.gz] - Test::Harness Shall I

Re: [CentOS] scripting CPAN installs

2010-04-19 Thread Les Mikesell
On 4/19/2010 4:15 PM, Kahlil Hodgson wrote: On 04/17/2010 12:21 AM, Alan McKay wrote: Now my only problem seems to be that cpan does not allow me to specify yes to this question when it asks. e.g. like the -y option to yum Unsatisfied dependencies detected during

Re: [CentOS] scripting CPAN installs

2010-04-16 Thread Christoph Maser
Am Donnerstag, den 15.04.2010, 22:23 +0200 schrieb Alan McKay: Hey folks, Maybe there is a Perl/CPAN list that is a better place to ask this? If so, maybe someone can point me to it. Anyway, I want to be able to script the installation of a bunch of CPAN modules, and the first basic problem

Re: [CentOS] scripting CPAN installs

2010-04-16 Thread Les Mikesell
Christoph Maser wrote: Am Donnerstag, den 15.04.2010, 22:23 +0200 schrieb Alan McKay: Hey folks, Maybe there is a Perl/CPAN list that is a better place to ask this? If so, maybe someone can point me to it. Anyway, I want to be able to script the installation of a bunch of CPAN modules, and

Re: [CentOS] scripting CPAN installs

2010-04-16 Thread Tomas Ruprich
Hi, i don't know exactly if this would be usable for yourself, but very nice feature for our purposes is autobundling, see for example: http://search.cpan.org/~andk/CPAN-1.9402/lib/CPAN.pm#POPULATE_AN_INSTALLATION_WITH_LOTS_OF_MODULES or

Re: [CentOS] scripting CPAN installs

2010-04-16 Thread Tomas Ruprich
Sorry, sent too soon. As for your problem with not knowing if the module was succesfully installed... i went around by trying use/require and printing version after each install. Tomas Fri, Apr 16, 2010 ve 03:26:16PM +0200, Tomas Ruprich napsal: Hi, i don't know exactly if this would be

Re: [CentOS] scripting CPAN installs

2010-04-16 Thread Alan McKay
http://search.cpan.org/~andk/CPAN-1.9402/lib/CPAN.pm#POPULATE_AN_INSTALLATION_WITH_LOTS_OF_MODULES http://www.developertutorials.com/tutorials/cgi-perl/automate-perl-module-deployment-050426/page4.html This is a very interesting idea! Now my only problem seems to be that cpan does not allow me

Re: [CentOS] scripting CPAN installs

2010-04-16 Thread Joseph L. Casale
The main problem with 3rd party repos is that you have to be careful about updates causing dependency conflicts, especially if you use more than one. You've mentioned that before, doesn't 'priorities' resolve this nicely? I use c5-testing, rf, atrpms, epel, remi and some others and never have

Re: [CentOS] scripting CPAN installs

2010-04-16 Thread Les Mikesell
On 4/16/2010 9:46 AM, Joseph L. Casale wrote: The main problem with 3rd party repos is that you have to be careful about updates causing dependency conflicts, especially if you use more than one. You've mentioned that before, doesn't 'priorities' resolve this nicely? I use c5-testing, rf,

[CentOS] scripting CPAN installs

2010-04-15 Thread Alan McKay
Hey folks, Maybe there is a Perl/CPAN list that is a better place to ask this? If so, maybe someone can point me to it. Anyway, I want to be able to script the installation of a bunch of CPAN modules, and the first basic problem I am coming up against is that the cpan command seems to always

Re: [CentOS] scripting CPAN installs

2010-04-15 Thread Joseph L. Casale
Anyway, I want to be able to script the installation of a bunch of CPAN modules, and the first basic problem I am coming up against is that the cpan command seems to always return 0 regardless of whether or not the install completed. While I can't answer that, I might try to actually call a Perl

Re: [CentOS] scripting CPAN installs

2010-04-15 Thread Bowie Bailey
Alan McKay wrote: Hey folks, Maybe there is a Perl/CPAN list that is a better place to ask this? If so, maybe someone can point me to it. Anyway, I want to be able to script the installation of a bunch of CPAN modules, and the first basic problem I am coming up against is that the cpan

Re: [CentOS] scripting CPAN installs

2010-04-15 Thread Alan McKay
While I can't answer that, I might try to actually call a Perl check after which although slightly extra work would yield the answer. Hmmm, good point - I could do that. I've come across several methods of checking module versions and none of them seemed perfect to me. Can you recommend a

Re: [CentOS] scripting CPAN installs

2010-04-15 Thread Joseph L. Casale
Hmmm, good point - I could do that. I've come across several methods of checking module versions and none of them seemed perfect to me. Can you recommend a method? Well, depends if you are in Perl, or bash, but really something as simple as: perl -e 'use HTML::Parser;' echo $? Aside from the

Re: [CentOS] scripting CPAN installs

2010-04-15 Thread Les Mikesell
On 4/15/2010 3:23 PM, Alan McKay wrote: Hey folks, Maybe there is a Perl/CPAN list that is a better place to ask this? If so, maybe someone can point me to it. Anyway, I want to be able to script the installation of a bunch of CPAN modules, and the first basic problem I am coming up against

Re: [CentOS] scripting CPAN installs

2010-04-15 Thread Jobst Schmalenbach
On Thu, Apr 15, 2010 at 04:31:08PM -0400, Alan McKay (alan.mc...@gmail.com) wrote: While I can't answer that, I might try to actually call a Perl check after which although slightly extra work would yield the answer. snip We don't do auto-updates on production boxes so this is not a