in reply to Meaning of XS object version

I'm running Perl v5.16.3 on Red Hat GNU/Linux 7.9.

OUCH! Perl 5.16 has been End-Of-Life without any security or stability updates for nearly a decade now. You REALLY need to upgrade to a newer Perl version.

Are you running the system Perl provided by Redhat? This is generally a bad idea for user provided scripts (e.g. anything that is NOT maintained by the Linux Distribution itself).

Most distributions also provide a number of packages to install extra Perl modules required by other packages from the distribution. If you mess with those (install stuff from CPAN, especially updated modules), you can easily break your operating system. This goes for pretty much all scripting languages, BTW, one of the reason NodeJS, Python, etc all use some variant of "install stuff into the users home directory".

From the error message i suspect that a mix-up between CPAN installed stuff and Redhat provided packages has indeed occured.

There are quite a few ways to use a user-provided perl installation. The easiest is probably Perlbrew. Personally, i'm a more oldschool hands-on guy that likes to finetune things, using the classic install instructions from https://www.cpan.org/src/ and a handful of complicated bash+perl scripts to finetune things on a per-project basis.

But as a start, i'd recommend using Perlbrew to install an up-to-date Perl 5.38 into your home directory and installing all the required modules ONLY from cpan. That way, we can be sure you have a reasonably clean installation and use that to help you trace any other problems that might occur.

With an ancient, unsupported Perl version that may or may have not been messed with by the Linux distributor and/or admins of the server, it's really hard to tell what the root cause of your problem is.

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP

Replies are listed 'Best First'.
Re^2: Meaning of XS object version
by regalbraith (Novice) on Jul 19, 2023 at 16:02 UTC
    Yes, I'm using the Perl that is managed by Red Hat for 7.9 version of their OS.
    rpm -qf /bin/perl perl-5.16.3-299.el7_9.x86_64
      Red Hat for 7.9 version of their OS

      Just in case you were unaware, that support from RedHat will cease on the 30th of June 2024 - ie. less than a year from now. Unless your organisation wants to pay for ELS you should be working on an exit/upgrade strategy today.


      🦛

        I was aware the EOL was coming soon, although not the exact date. When we upgrade OS versions is not something our development team controls. That said, I have heard some discussions around moving to Red Hat GNU/Linux 8 soonish. While the Perl version is 5.16.3 the Red Hat build number is 299, built back in Jan 2021 (2.5 years ago).

      Uhm, i wouldn't exactly say that a one-decade-out-of-support software is "managed", i'd certainly look into upgrading the whole system to more modern software for security reasons.

      PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP