note
Anonymous Monk
<p> Did you read what you linked says? [href://http://dwimperl.com/linux.html] says <b>perl dwimperl-linux-5.20.1-2-x86_64/perl/bin/reloc_perl dwimperl-linux-5.20.1-2-x86_64/perl/bin/</b> so why don't you do that, why don't you use <b>[href://https://github.com/dwimperl/dwimperl-linux/blob/master/src/reloc_perl]</b>?
<p> <readmore>
<p><i> The Portable.pm is not really what I want here as that would require the users to change their code </i>
<p> Sure it wouldn't require that of users as there is [doc://perlrun#PERL5OPT]/<b> [doc://Config#sitecustomize] </b> ..... wait a minute there :)
<p> When you install any relocatable perl, the installer updates Config; If whatever installer you're providing your users doesn't do this, give them a [href://http://www.citrusperl.com/helpweb/createdistribution.htm] or a [href://http://www.cavapackager.com/appdocs/installer.htm] so that %Config gets updated when they install this new perl, once its installed, they can move it and run relocateperl again
<p><i> So maybe I misunderstand what Portable does. </i><p> It updates %Config ... flash/usb drive? you stick it in, it gets a new driveletter ... all of %Config paths are now wrong ... it fixes this
<p><i> The relocateperl of Citrusperl might do what I need here, but it is written in C and I could not find its source yet. </i>
<p> Its quite pure-perl, it comes with citrusperl, its specific to citrusperl , which makes an .exe for it ... <b>citrusperl\apps\scripts\relocateperl.xpl</b> and <b>citrusperl\apps\scripts\citrusutils.xpl</b>
<p> You can find "reloc_perl.bat" from ActiveState at [id://669488|Changing Perl Config settings], [id://376275|How to move a windows perl installation??], [href://http%3A//docs.activestate.com/activeperl/5.8/bin/reloc_perl.html|reloc_perl - copy a perl installation to a new location], [href://http://docs.activestate.com/activeperl/5.8/lib/ActiveState/RelocateTree.html|ActiveState::RelocateTree - copy tree substituting paths at the same time]
<p> Strawberry installer/relocator portion is this parts <br> [href://https://metacpan.org/source/KMX/Perl-Dist-Strawberry-4.003/lib/Perl/Dist/Strawberry/Step/InstallPerlCore.pm]
<br> [href://https://metacpan.org/source/KMX/Perl-Dist-Strawberry-4.003/lib/Perl/Dist/Strawberry/Step/CreateRelocationFile.pm]
<br> [href://https://metacpan.org/source/KMX/Perl-Dist-Strawberry-4.003/lib/Perl/Dist/Strawberry/Step/FixShebang.pm]
<p> Basically update Config_heavy.pl and fixup paths in pl2bat-ed files
<p> CitrusPerl is a perl distribution maker/distributor, make your own CitrusSzabgabPerl :)
</readmore>
1102042
1102090
6