Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Build Perl win32 with a ' ' in install dir

by Corion (Pope)
on Jan 06, 2020 at 12:23 UTC ( #11111051=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11111051]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2020-05-27 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (152 votes). Check out past polls.

    Notices?