in reply to Build Perl win32 with a ' ' in install dir

As a hacky way of installing your custom Perl, you can also first configure it for (say) C:\TEMP\MyPerl\, install it there and then move it.

You will have to patch lib/Config.pm, lib/Config_heavy.pl and lib/CPAN/Config.pm and adjust them for your new paths, but that should be it. Alternatively, have a look at what Strawberry Perl does in relocateperl.cmd.

Replies are listed 'Best First'.
Re^2: Build Perl win32 with a ' ' in install dir
by fdesar (Beadle) on Jan 06, 2020 at 13:16 UTC

    Thanks, but if I move my new Perl, how will it find its lib/Config.pm lib/Config_heavy.pm and lib/CPAN/Config.pm at their new locations ?

      These paths (well, @INC) get set up relative to the location of perl.exe, as long as you have userelocatableinc set to a true value in your Makefile. This should be the default on Windows anyway.