Home: Perl Programming Help: Advanced:
automated module installation



bluedome
New User

Oct 18, 2012, 10:40 AM


Views: 6299
automated module installation

 
I'm trying to automate a build for a web application that uses around 400 perl modules, to run on redhat enterprise 6 servers. I'm running into some difficulties:

Can’t use rpms directly because even Dag::Wiers only has about half of the rpms we need. Can’t mix rpm installs and cpan installs because updates of either could break modules installed with the other.

Can’t use cpan command line in an automated build since it asks interactive questions.

I can't find an rpm for cpanm on RHEL6/Centos6. So I tried installing it using cpan, but it requires more recent versions of prereq modules than what the latest update of redhat 6 provides, and the build of these fails.

After all these years and perl module installation on a standard OS is still so difficult? What am I doing wrong?

Thanks


rovf
Veteran

Nov 6, 2012, 1:32 AM


Views: 6171
Re: [bluedome] automated module installation

I don't know a solution to your problem (and, yes, it sounds like an interesting one), but I found this on the Net:

http://perl.arix.com/cpan2rpm/
http://search.cpan.org/~rjray/Perl-RPM-1.51/RPM.pm

Does this help?


FishMonger
Veteran / Moderator

Nov 6, 2012, 6:31 AM


Views: 6148
Re: [bluedome] automated module installation


Quote
Can’t use cpan command line in an automated build since it asks interactive questions.


The only interactive questions I know about are the ones asking for confirmation to install each missing prereq as they are discovered. The simple solution is to properly configure cpan so that it doesn't ask you that confirmation.

Execute this command at the cpan prompt.

Quote
o conf prerequisites_policy follow

Quote