in reply to Re^3: Problems with cpanm
in thread Problems with cpanm

tried to install the module  cpan[1]> Getopt::Long

and I am getting this:

Catching error: "Can't locate object method \"Long\" via package \"Ge +topt\" at /usr/share/perl/5.22/CPAN.pm line 375, <FIN> line 1.\cJ" at + /usr/share/perl/5.22/CPAN.pm line 391, <FIN> line 1. CPAN::shell() called at /usr/share/perl/5.22/App/Cpan.pm line 395 App::Cpan::_process_options("App::Cpan") called at /usr/share/perl +/5.22/App/Cpan.pm line 492 App::Cpan::run("App::Cpan") called at /usr/bin/cpan line 12

Replies are listed 'Best First'.
Re^5: Problems with cpanm
by Corion (Patriarch) on Mar 15, 2019 at 15:17 UTC

    The command from within the cpan tool is:

    install Getopt::Long

    ... but Getopt::Long should come distributed with your Perl anyway. If your vendor did not distribute this module with Perl, they likely offer a separate package which brings in everything that makes the Perl distribution complete and compliant with the license.

Re^5: Problems with cpanm
by marto (Cardinal) on Mar 15, 2019 at 15:14 UTC

    Give me a moment, I'm just setting up the non perl dependencies for this tool, I can see some further issues. I'll reply again shortly.

    Update: in the short term, just:

    cd ext_tools ./cpanm Getopt::Long::Subcommand ./cpanm Bio::DB::HTS::Tabix ./cpanm Bio::SeqIO

      Thank you

      The first and the third command gave me the following:

      Getopt::Long::Subcommand is up to date. (0.103) Bio::SeqIO is up to date. (1.7.5)

      And the second comand went through a installation procedure.