Skip to content

Instantly share code, notes, and snippets.

View alisonrag's full-sized avatar

Alison alisonrag

  • Brazil
  • 07:01 (UTC -03:00)
View GitHub Profile
Tk
Win32::API
Win32::GUI
Win32::GUI::Constants
Wx::Perl::Packager
Wx
IO::Scalar
List::Util
File::Path
File::Slurp
If pp is already installed, then remove it with cpanm --uninstall pp
Find the directory C:\Strawberry\cpan\build\PAR-Packer-1.037-0 (or equivalent) and delete it completely.
Now open a CLI (aka DOS) window into the path C:\Strawberry\cpan\build\PAR-Packer-1.037-0 (or equivalent) and do...
:: Install the dependencies first
cpanm --installdeps PAR::Packer
:: Now manually install PAR::Packer
cpanm --look PAR::Packer
1) set path so powershell and wbem don't interfere (still needed for downloads to work):
set PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\Users\USER\bin;C:\WINDOWS\System32\OpenSSH\;C:\Strawberry\c\bin;C:\Strawberry\perl\site\bin;C:\Strawberry\perl\bin;C:\Users\USER\AppData\Local\Microsoft\WindowsApps;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;
2) do cpan install which will take over an hour(med fast pc in a VM) and spew _many_ errors and eventually fail (but all necessary files will download)
C:\Users\USER>cpan -i Wx
# this will fail
# by alisonrag v1.0
package kROAuth;
use strict;
use warnings;
use lib 'C:/Strawberry/perl/lib/';
use lib 'C:/Strawberry/perl/site/lib';
use lib 'C:/Strawberry/perl/vendor/lib';
use LWP::UserAgent;
# by alisonrag v1.0
package kROAuth;
use strict;
use warnings;
use lib 'C:/Strawberry/perl/lib/';
use lib 'C:/Strawberry/perl/site/lib';
use lib 'C:/Strawberry/perl/vendor/lib';
use LWP::UserAgent;