Re: Build Perl win32 with a ' ' in install dir
by Corion (Patriarch) on Jan 06, 2020 at 12:23 UTC
|
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.
| [reply] [d/l] [select] |
|
| [reply] |
|
| [reply] [d/l] [select] |
Re: Build Perl win32 with a ' ' in install dir
by soonix (Canon) on Jan 06, 2020 at 11:40 UTC
|
| [reply] [d/l] [select] |
|
| [reply] |
|
Attention: ~ is not a dash, it should be a (squiggly) tilde.
| [reply] |
|
|
dir c:\progra~1
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
| [reply] [d/l] |
|
it seems it doen't work anymore on Windows 10 : Hi AFAIK, Its a feature you have to choose to turn on, it affects cmd.exe globbing (extra matches)
| [reply] |
Re: Build Perl win32 with a ' ' in install dir
by syphilis (Archbishop) on Jan 07, 2020 at 00:39 UTC
|
It compiles OK, runs tests OK but won't install at all
I find the same problem - not because of the ' ', but because make install is unable to create new directories in C:\Program Files - even when I'm running as Owner.
That is, I get "Access is denied" error.
I don't know how to work around that.
However, when I switch to attempting to install into a location that does allow me to create new directories (eg C:\_64\Program Files\perl), then the space between 'Program' and 'Files' creates problems.
The only workaround I came up with (drawing on earlier posts in this thread) was to:
1) Create C:\_64\Program Files directory (unless it already exists);
2) set INST_TOP to $(INST_DRV)\_64\PROGRA~1\perl
But if you're intent on installing perl into C:\Program Files and you're hitting the "Access is denied" error, then I can't really help.
Cheers, Rob | [reply] [d/l] [select] |
|
| [reply] |
|
It may be it will work if you run the install under an administrative command window
That is indeed all it takes. Good catch !
Funny ... I was assuming that "Owner" was synonymous with "Administrator" ... but apparently not.
Cheers, Rob
| [reply] |
Re: Build Perl win32 with a ' ' in install dir
by harangzsolt33 (Chaplain) on Jan 07, 2020 at 06:06 UTC
|
Why don't you install Perl in C:\bin\perl? It would make things so much easier. I have a Bin folder where I keep a bunch of portable programs. When I install Windows, I just copy my programs to C:\Bin, and I have all my programs up and ready. This includes PHP, Python, and TinyPerl 5.8 as well and many others... | [reply] |
Re: Build Perl win32 with a ' ' in install dir
by Anonymous Monk on Jan 07, 2020 at 05:10 UTC
|
Hi
Why don't you use ActivePerl?
Why don't you use CitrusPerl?
Why don't you use StrawberryPerl? Lots of installer to borrow
Why are you building your own?
Re^3: Relocatable Perl (use Portable;)
| [reply] |
Re: Build Perl win32 with a ' ' in install dir
by Anonymous Monk on Jan 06, 2020 at 12:21 UTC
|
| [reply] |