in reply to Problems with cpanm

There's a bug in their release:

marto@Shemp:~/code/what/ViewBS-0.1.7$ ls conda doc INSTALL license.txt test.py cpanm environment.yaml INSTALL.pl README.md ViewBS data image lib Rplots.pdf ViewBSdocker

And their INSTALL.pl looks for cpanm in:

## Check cpanm my $dir = dirname(abs_path $0); my $CPANM = "$dir/ext_tools/cpanm";

Note the extra ext_tools directory. So when you run INSTALL.pl as directed by the docs, you get the error:

marto@Shemp:~/code/what/ViewBS-0.1.7$ perl INSTALL.pl PASSED: Perl version(5.026001 >= 5.14.4). Error: cpanm not found in /home/marto/code/what/ViewBS-0.1.7. Please c +heck.

A quick fix would be to create a directory called ext_tools, and move cpanm in there, then continue the process:

marto@Shemp:~/code/what/ViewBS-0.1.7$ mkdir ext_tools marto@Shemp:~/code/what/ViewBS-0.1.7$ mv cpanm ext_tools/ marto@Shemp:~/code/what/ViewBS-0.1.7$ perl INSTALL.pl

The previous release had this directory, and cpanm was the only thing in it. I've raised the issue over at the github repo.

Update: Well, the owner fixed the issue very quickly. The system works :)

Replies are listed 'Best First'.
Re^2: Problems with cpanm
by Siberian_monk29 (Novice) on Mar 15, 2019 at 14:36 UTC
    Thank you so much! But now I am getting this issue Installation of Perl module Getopt::Long::Subcommand failed. Please install manually How can do it manually?

      No problem, let me know if you have any other problems with this.

        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

        But now I am getting this issue Installation  Perl module Getopt::Long::Subcommand failed.  Please install manually

        How can do it manually?

Re^2: Problems with cpanm
by Siberian_monk29 (Novice) on Mar 19, 2019 at 16:19 UTC
    Should I leave  cpanm in the directory  ext_tools? Should I copy back to Perl directory?

      Sorry, I've not been around for a few days. I raised a pr to fix a couple of things. Are you still experiencing issues?

      Update: Merged. It fixes the cpanm permissions and a problem with the INSTALL.pl, reuse of a variable used to check installation status.