CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Advanced:
automated module installation

 



bluedome
New User

Oct 18, 2012, 10:40 AM

Post #1 of 3 (2728 views)
automated module installation Can't Post

 
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

Post #2 of 3 (2600 views)
Re: [bluedome] automated module installation [In reply to] Can't Post

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

Post #3 of 3 (2577 views)
Re: [bluedome] automated module installation [In reply to] Can't Post


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

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives