jujiro_eb has asked for the wisdom of the Perl Monks concerning the following question:
I seek your wisdom one more time to package scripts in such a way that there is no conflict with existing Perl applications.
Here is the scenario. I developed some scripts using Activestate Perl 5.8.9.825 for Windows and Linux platform. My scripts are dependent on modules like Date::Formatter, Config::IniFiles etc.
I manually installed these modules on my first target machine (Windows 2003 server). I did not realize that Oracle was also installed on the same machine, which also uses some older versions of Perl scripts. My scripts did not work right out of the box. I had to set the environment variable PERL5LIB to c:\perl\lib in every command session where I ran my scripts. I did not want to make this change permanent, I could broken existing Oracle installation.
So here are my questions:
1. Can I somehow package all the dependent modules along with my scripts so that they get installed in my application folder, rather than under perl/lib?
2. Would you call it a good practice?
3. Do I even need to tinker with PERL5LIB variable?
Please do suggest anything which you consider as a good practice for deploymnt. I am sure my way was kludgy.
Thank you so much in advance.
Ash
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question: Best practices for packaging scripts
by Bloodnok (Vicar) on Mar 26, 2009 at 15:52 UTC | |
|
Re: Question: Best practices for packaging scripts
by ELISHEVA (Prior) on Mar 27, 2009 at 13:45 UTC | |
by jujiro_eb (Sexton) on Mar 27, 2009 at 14:24 UTC | |
by ELISHEVA (Prior) on Mar 27, 2009 at 15:02 UTC | |
|
Re: Question: Best practices for packaging scripts
by knbknb (Acolyte) on Mar 26, 2009 at 18:09 UTC | |
|
Re: Question: Best practices for packaging scripts
by Perlbotics (Archbishop) on Mar 26, 2009 at 20:04 UTC |