Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

Hi,
I've copied Strawberry Perl (which implies Win32) onto a removable flash drive. I have a batch command that sets the PATH and other $ENV settings correctly making perl, cpan, and nmake accessible. I have also written a Perl script that modifies cpan's Config.pm so that cpan can download, build and install modules (almost) correctly into the Perl install on the flash drive. (Why? I have broadband at work, and not at home, it was getting irritating to bring home a bunch of module tarballs only to find that they required missing dependencies). It almost works except that Perl has some compile time settings (mostly paths) that need to be changed. They seem to be in X:\strawberry\perl\lib\Config.pm, but also appear in X:\strawberry\perl\lib\Config_heavy.pl and X:\strawberry\perl\lib\CORE\config.h and probably a bunch of others too. (Note: with a removable drive the X: changes from system to system, hence the need to change these configurations)

Can I just edit Config.pm, or will I also need to do something with perl.exe? Is there a Perl module that already does these things? (I couldn't find one)

So far the Perl-onna-stick thing is working really well for writing and running scripts (i.e. doing things with Perl), but is having small issues with installing modules etc (i.e. doing things to Perl) because it thinks everything should be stored off the C:\strawberry\perl path prefix.

The trick after this will be trying to incorporate GTK2-perl.

Update: I've given using a script to edit Perl's Config.pm and Config_heavy.pl a whirl... it works!

When I'm done I'll try and write a coherent article on "RFC: Changing Perl Config settings" and and another on "Strawberry-Perl-onna-Stick".


In reply to Changing Perl compile-time configuration settings by Bloodrage

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 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?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2024-04-19 22:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found