On Tue, 23 May 2017, m.roth at 5-cent.us wrote:> hw wrote: >> >> are there packages replacing the ancient perl version in >> Centos 7 with a more recent one, like 5.24? At least the >> state feature is required.Perl 5.24 is available in SCL, in the centos-sclo-rh repository. [root ~]# yum info rh-perl524-perl Name : rh-perl524-perl Arch : x86_64 Epoch : 4 Version : 5.24.0 Release : 379.el7 Size : 6.0 M Repo : centos-sclo-rh/x86_64 Summary : Practical Extraction and Report Language -- Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
Paul Heinlein schrieb:> On Tue, 23 May 2017, m.roth at 5-cent.us wrote: > >> hw wrote: >>> >>> are there packages replacing the ancient perl version in >>> Centos 7 with a more recent one, like 5.24? At least the >>> state feature is required. > > Perl 5.24 is available in SCL, in the centos-sclo-rh repository. > > [root ~]# yum info rh-perl524-perl > Name : rh-perl524-perl > Arch : x86_64 > Epoch : 4 > Version : 5.24.0 > Release : 379.el7 > Size : 6.0 M > Repo : centos-sclo-rh/x86_64 > Summary : Practical Extraction and Report Language >Thanks, I tried rh-perl, and it worked for a test. It does not replace the existing perl installation. You have to explicitly use that version. I?m not sure if that?s possible for CGI. I do get 5.24 after running 'scl enable rh-perl524 bash'. Is there a way to get that for CGI?
> > Thanks, I tried rh-perl, and it worked for a test. It does not replace the existing > perl installation. You have to explicitly use that version.Yes, that's how SCL works. A lot of system software uses perl (and python and gcc) so replacing the installed version without testing the effect it might have on the system is not advisable. i.e. things will break. The whole point of the RHEL/CentOS is that the versions of software are stable (strong and stable even) and that everything is exhaustively tested to make sure things work.> > Im not sure if thats possible for CGI. I do get 5.24 after running > 'scl enable rh-perl524 bash'. Is there a way to get that for CGI? >All (!) that the 'scl enable' command does is to set environment variables for things like PATH and LD_LIBRARY_PATH. If you can do that for the CGI environment, then it will pick up the correct perl version. But don't ever be tempted to make updated versions the default. P.
On Wed, 24 May 2017, hw wrote:> Paul Heinlein schrieb: >> On Tue, 23 May 2017, m.roth at 5-cent.us wrote: >> >> > hw wrote: >> > > >> > > are there packages replacing the ancient perl version in >> > > Centos 7 with a more recent one, like 5.24? At least the >> > > state feature is required. >> >> Perl 5.24 is available in SCL, in the centos-sclo-rh repository. >> > Thanks, I tried rh-perl, and it worked for a test. It does not > replace the existing perl installation. You have to explicitly use > that version.Not replacing the existing system Perl is a feature, not a bug. It allows the 'Enterprise' side of CentOS to keep going with no unexpected surprises.> I?m not sure if that?s possible for CGI. I do get 5.24 after > running 'scl enable rh-perl524 bash'. Is there a way to get that > for CGI?It all depends on how you launch your CGI, but in general there shouldn't be a problem beginning your script with #!/opt/rh/.../perl -- Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/