Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Did you read what you linked says? http://dwimperl.com/linux.html says perl dwimperl-linux-5.20.1-2-x86_64/perl/bin/reloc_perl dwimperl-linux-5.20.1-2-x86_64/perl/bin/ so why don't you do that, why don't you use https://github.com/dwimperl/dwimperl-linux/blob/master/src/reloc_perl?

The Portable.pm is not really what I want here as that would require the users to change their code

Sure it wouldn't require that of users as there is PERL5OPT/ sitecustomize ..... wait a minute there :)

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 http://www.citrusperl.com/helpweb/createdistribution.htm or a 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

So maybe I misunderstand what Portable does.

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

The relocateperl of Citrusperl might do what I need here, but it is written in C and I could not find its source yet.

Its quite pure-perl, it comes with citrusperl, its specific to citrusperl , which makes an .exe for it ... citrusperl\apps\scripts\relocateperl.xpl and citrusperl\apps\scripts\citrusutils.xpl

You can find "reloc_perl.bat" from ActiveState at Changing Perl Config settings, How to move a windows perl installation??, reloc_perl - copy a perl installation to a new location, ActiveState::RelocateTree - copy tree substituting paths at the same time

Strawberry installer/relocator portion is this parts
https://metacpan.org/source/KMX/Perl-Dist-Strawberry-4.003/lib/Perl/Dist/Strawberry/Step/InstallPerlCore.pm
https://metacpan.org/source/KMX/Perl-Dist-Strawberry-4.003/lib/Perl/Dist/Strawberry/Step/CreateRelocationFile.pm
https://metacpan.org/source/KMX/Perl-Dist-Strawberry-4.003/lib/Perl/Dist/Strawberry/Step/FixShebang.pm

Basically update Config_heavy.pl and fixup paths in pl2bat-ed files

CitrusPerl is a perl distribution maker/distributor, make your own CitrusSzabgabPerl :)


In reply to Re^3: How to create relocatable perl 5.20.1 ? ( reloc_perl) by Anonymous Monk
in thread How to create relocatable perl 5.20.1 ? by szabgab

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2022-01-28 12:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (73 votes). Check out past polls.

    Notices?