Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by Corion (Patriarch)
on Jan 06, 2020 at 12:23 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11111051]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found