Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: sitecustomize.pl equivalent on Strawberry Perl?

by Athanasius (Archbishop)
on Jan 07, 2017 at 06:24 UTC ( [id://1179114]=note: print w/replies, xml ) Need Help??


in reply to sitecustomize.pl equivalent on Starwberry Perl?

Hello exilepanda,

The obvious answer is to copy your existing sitecustomize.pl file into the site/lib directory of your Strawberry distribution. But that will work only if the perl executable has been built with the appropriate compiler option, namely -DUSE_SITECUSTOMIZE (see the discussion of the -f flag in perlrun).

Looking at the Strawberry Perls installed on my computer, and also at the various Release Notes under http://strawberryperl.com/releases.html, the last Strawberry Perl executable I can find that was compiled with the -DUSE_SITECUSTOMIZE flag set is v5.12.3. I have no idea why the good folks at Strawberry began omitting that flag from version 5.14 onwards.

Sorry, :-(

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: sitecustomize.pl equivalent on Strawberry Perl?
by syphilis (Archbishop) on Jan 07, 2017 at 10:11 UTC
    I have no idea why the good folks at Strawberry began omitting that flag from version 5.14 onwards

    I don't know either but my assumption is that it would have been no longer deemed necessary.

    exilepanda, could you provide us with examples of the things that sitecustomize.pl needs to set (and which Strawbeery Perl is failing to set) ?
    (Maybe there's a simple solution.)

    Cheers,
    Rob
      I am on 5.24. I will need sitecustomize for something like this :
      #1. export a global sharable variable require Exporter; our @ISA = qw/Exporter/; our @EXPORT = qw/%GV/; our %GV = (....); #2. add more Lib path push @INC, "D:/Lib/$ENV{SERVER_NAME}" if ($ENV{REMOTE_ADDR}) ; #3. define some dynamic path $ENV{MyData} = "D:/UsrData/Guest/"; $ENV{MyData} = "D:/UsrData/$ENV{USER}" if (length $ENV{USER});
      Though I got   -f    don't do $sitelib/sitecustomize.pl at startup from perl -h. But no different with/without it.
        Why would those need to be set from sitecustomize was oppossed to mystuff.pm?
Re^2: sitecustomize.pl equivalent on Strawberry Perl?
by exilepanda (Friar) on Jan 07, 2017 at 11:59 UTC
    Sigh.. Nailed! Have to fall back to Active State. Thank you very much for your help though.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 01:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found