kjolley / BIGSdb

Bacterial Isolate Genome Sequence Database (BIGSdb): A platform for gene-by-gene bacterial population annotation and analysis.
https://pubmlst.org/software/bigsdb/
Other
56 stars 19 forks source link

"lround" is not exported by the POSIX module #957

Closed abrozzi closed 6 months ago

abrozzi commented 6 months ago

Hi Keith,

cat /var/log/bigsdb.log
2024/02/23 11:06:30 [WARN] 11.172.185.80 PluginManager.pm:49  - SeqbinBreakdown plugin not installed properly!  "lround" is not exported by the POSIX module
Can't continue after import errors at /usr/lib64/perl5/POSIX.pm line 30.
BEGIN failed--compilation aborted at /usr/local/lib/BIGSdb/Plugins/SeqbinBreakdown.pm line 26.

any hints?

Tx, Alex

kjolley commented 6 months ago

What version of Perl are you using?

I see from https://perldoc.perl.org/POSIX that lround was added in Perl v5.22. It has been used in BIGSdb since May 2021 though, and I've not encountered this error before.

abrozzi commented 6 months ago
perl -v

This is perl 5, version 16, subversion 3 (v5.16.3) 
abrozzi commented 6 months ago

https://bigsdb.readthedocs.io/en/latest/dependencies.html

says Perl5.10+

kjolley commented 6 months ago

I know it does - it looks like I need to change that.

kjolley commented 6 months ago

Can you update POSIX from CPAN?

abrozzi commented 6 months ago
cpanm less
less is up to date. (0.03)
kjolley commented 6 months ago

cpan POSIX