stingray020 has asked for the wisdom of the Perl Monks concerning the following question:
Greetings Perl Monks.
I'm an occasional, though long-time Perl coder.
On a CentOS shared hosting setup, I had a load of perl scripts reading and writing successfully to a Maria database using DBI.
The hosting company, for good reasons, migrated the account to another server running Almalinux, and the above scripts broke. For a long time the hosting company blamed coding errors, which were apparently spontaneously created without human intervention when the account was migrated.
I've spent quite a bit of time investigating and the core issue is that the following error is given (by redirecting STDERR to a text file), together with a 500 server error to browser, by the pared down code below (yes, the original code did have use strict, warnings, diagnostics, redirect to STDERR, db write, disconnect, and attempted to write to browser, among other features).
usr/bin/perl: symbol lookup error: /home/username/perl5/lib/perl5/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: Perl_xs_version_bootcheck
See also this thread:#!/usr/bin/perl use cPanelUserConfig; use DBI; our $dbpath = "DBI:mysql:valid_servername:localhost"; our $dbuser = "validUsername"; our $dbpass = "validPassword"; my $result = pushdata(); sub pushdata { my $dbh = DBI->connect($dbpath,$dbuser,$dbpass); 1; }
https://forum.directadmin.com/threads/error-on-spamassassin-install.67667/
On talking again with the hosting company, they've made further disclosures, stating that they are running Perl v5.26.3 where 'perl scripts and modules are not compatible or wont work'.
Can the Monks share any enlightenment on whether backward compatibility in Perl is now lost and the format of DBI calls needs to change, or whether perhaps I should seek a different hosting company, among other possible solutions? Thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Almalinux throwing Perl_xs_version_bootcheck undefined error
by Corion (Patriarch) on Aug 31, 2023 at 11:25 UTC | |
|
Re: Almalinux throwing Perl_xs_version_bootcheck undefined error
by marto (Cardinal) on Aug 31, 2023 at 11:23 UTC | |
by stingray020 (Initiate) on Aug 31, 2023 at 11:44 UTC | |
by marto (Cardinal) on Aug 31, 2023 at 11:57 UTC | |
|
Re: Almalinux throwing Perl_xs_version_bootcheck undefined error
by NERDVANA (Priest) on Sep 03, 2023 at 06:19 UTC |