in reply to Re: Perlbrew PAR
in thread Perlbrew PAR

Thank you Ken

As far I can see, it seems everything is set the right way on my machine. However the problem persists. Here a couple of more info.

pp exists in /Users/rl/perl5/perlbrew/perls/perl-5.16.3/bin/

$PATH -> /Users/rl/perl5/perlbrew/bin:/Users/rl/perl5/perlbrew/perls/p +erl-5.16.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/ +bin $ perlbrew list -> * perl-5.16.3

If I try: pp -o TEST writeFile.pl (simple script to write to file), I get everything packed right. However, if I try pp -M Tk -o TEST2 TKbasic.pl (where I have a simple Tk code), I get the error: /usr/bin/pp5.18: Cannot find module Tk.pm (specified with -M). Which I interpret (maybe I am wrong) so that I am using a PP I may have mistakenly installed in the past with the default Perl. In any case Tk is installed in my perl-5.16.3 as I can run the .pl script without problems.

Any suggestion?

Replies are listed 'Best First'.
Re^3: Perlbrew PAR
by swl (Prior) on Apr 08, 2018 at 21:13 UTC

    Maybe it is working correctly, but something is pointing the module search to your 5.18 installation? Do you have PERL5LIB set in your environment?

    What happens if you use the full path to pp? And specify the full path to perl?

    /Users/rl/perl5/perlbrew/perls/perl-5.16.3/bin/perl /Users/rl/perl5/pe +rlbrew/perls/perl-5.16.3/bin/pp.pl -M Tk -o TEST2 TKbasic.pl

    Another thing to check is to use scandeps.pl to see where pp is looking for modules.

    scandeps -B -V TKbasic.pl

    Or even pp with the verbose option (use -vvv for maximum verbosity).

    pp -v -M Tk -o TEST2 TKbasic.pl