SSPACE – Can’t locate getopts.pl
Today I tried to run the SSPACE Standard perl script for doing scaffolding of pre-assembled contigs, but I got this error message:
Can’t locate getopts.pl in @INC (@INC contains: /Tools/SSPACE-STANDARD-3.0_linux-x86_64/dotlib/ /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at SSPACE_Standard_v3.0.pl line 124.
getopts.pl is a Perl 4 core library but no longer included in current Perl 5 distributions. Checking my version: $ perl -v
> This is perl 5, version 18, subversion 2 (v5.18.2) built for x86_64-linux-gnu-thread-multi
Ok. I tried this
$ sudo cpan Perl4::CoreLibs
and yepp, it works!