Closed Deracination closed 9 years ago
CGI has been a core Perl module since 5.004 (and until 5.21). I guess it is possible that CentOS has removed CGI from their Perl builds. Can you confirm that for me?
I don't mind adding CGI to the repo. I just want make sure I understand why first.
CGI is installed as a separate yum module on CentOS 6 (perl-CGI module for Perl 5.10.1) and isn't installed by default in the minimal OS install. A minimal install excludes a number of core modules (Sys::Syslog and Archive::Tar are also missing). I can work around the issue easily, but if CGI is in the stack then it will be frictionless install for anyone just trying to pick up pinto and experiment with it, even on systems with a less-than-adequate Perl.
If you install the perl-core
meta package it will bring your system Perl more or less in line with the distribution -- you probably want this if you are building arbitrary CPAN packages. Unfortunately they install to vendor
prefixes which causes some problems with cpanm
and its self-contained mode.
There is a patch on the current development branch that addresses this. Not sure when this will be released though.
Hope this helps.
Thank you - that is indeed an excellent solution for most cases and completely solves the problem on the centos6 minimal install. I only reported this issue so that CGI might be included and so anyone trialling pinto on a minimal VM will have it 'Just Work', so I hope the module might still be added to the install stack.
A version of CGI has been added to the stack.
The pinto install stack https://stratopan.com/thaljef/OpenSource/pinto-release needs CGI.
Install onto a minimal centos 6 fails unless CGI is added first via yum or cpan.
This is tested installing on vagrant box pyranja/centos-6