Perl DBI error: cannot load DBI.so

Using OpenWRT: 23.05.3 r23809-234f1a2efa

Installed perl-dbi and all dependencies listed on https://openwrt.org/packages/pkgdata/perl-dbi

Trying to use

#!/usr/bin/perl
use strict;
use DBI;

which throws an error:

Can't load '/usr/lib/perl5/5.28/auto/DBI/DBI.so' for module DBI: Error relocating /usr/lib/perl5/5.28/auto/DBI/DBI.so: Perl_croak_nocontext: symbol not found at /usr/lib/perl5/5.28/DynaLoader.pm line 159.
 at /usr/lib/perl5/5.28/DBI.pm line 119.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.28/DBI.pm line 119.
Compilation failed in require at dbread.pl line 3.
BEGIN failed--compilation aborted at dbread.pl line 3.

According to this topic: https://stackoverflow.com/questions/21838610/cant-load-a-dbi-so-for-module-dbi

perl versions are incompatible.

Any ideas how to fix that?

what do you mean?