in reply to Re: Can't find a module that is installed
in thread Can't find a module that is installed

Typing habits, I capitalize the first letter, so that should be forks.pm in the first line as well
$ perl -v This is perl 5, version 22, subversion 1 (v5.22.1) built for x86_64-li +nux-gnu-thread-multi (with 58 registered patches, see perl -V for more detail) Copyright 1987-2015, Larry Wall Perl may be copied only under the terms of either the Artistic License + or the GNU General Public License, which may be found in the Perl 5 source ki +t. Complete documentation for Perl, including FAQ lists, should be found +on this system using "man perl" or "perldoc perl". If you have access to + the Internet, point your browser at http://www.perl.org/, the Perl Home Pa +ge.
I may be doing this part wrong;
$ cp /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/forks . cp: omitting directory '/usr/local/lib/x86_64-linux-gnu/perl/5.22.1/fo +rks' $ perl -E 'BEGIN[unshift @INC, ".";} use forks' Illegal declaration of subroutine BEGIN at -e line 1.
but the command for MAKER is mpiexec -machinefile /Data/machinefile -n 4 maker maker_exe.ctl maker_opts.ctl maker_bopts.ctl It doesn't explicitly call Perl

Replies are listed 'Best First'.
Re^3: Can't find a module that is installed
by RonW (Parson) on Feb 16, 2017 at 22:15 UTC
    I may be doing this part wrong;
    $ cp /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/forks .

    You did. The command should be:

    cp /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/forks.pm .

      ...and this is wrong:

      perl -E 'BEGIN[unshift @INC, ".";} use forks' ^

      That bracket [ should be a brace {.

      However, as anonymonk pointed out, it's much cleaner to write it as:

      perl -I. -E 'use forks'
      Mea culpa, I shouldn't be making simple typos like that. Round 2:
      $ cp /usr/local/lib/x86_64-linux-gnu/perl/5.22.1/forks.pm . $ perl -I. -E 'use forks' Argument "2.53_01" isn't numeric in numeric ge (>=) at forks.pm line 1 +570.
        Argument "2.53_01" isn't numeric in numeric ge (>=) at forks.pm line 1570.

        Not sure how relevant it is to your problem but that message is described in this bug report

        This is more of an issue now that the latest stable perl version is using a version of Storable which triggers this warning. From 5.22.01 perldelta:
        
               Storable has been upgraded from version 2.53 to 2.53_01.
        poj

        cp ...

        Hi,

        As a general rule copying files around is not the way to solve directories missing from @INC