Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Distribute script with dependencies

by Limbic~Region (Chancellor)
on Oct 25, 2013 at 12:47 UTC ( [id://1059642]=note: print w/replies, xml ) Need Help??


in reply to Distribute script with dependencies

kcalvelli,
Having a working perl on all servers is not sufficient. Are they all the same version of Perl compiled with the same options? Are there any modules that rely on system libraries that might not be installed such as Math::Pari? The point I am trying to make is that the "they" and "them" you are referring to are making your job a maintenance nightmare.

With that said, I believe local::lib and a reliable way to change directories to the location of the perl script should be a viable solution in many circumstances (needs to happen in a BEGIN block prior to the use of the local library.

Cheers - L~R

  • Comment on Re: Distribute script with dependencies

Replies are listed 'Best First'.
Re^2: Distribute script with dependencies
by kcalvelli (Novice) on Oct 25, 2013 at 12:59 UTC

    Unfortunately, they are not all the same version of perl. I have been using a perl compiled with gcc on both Linux and AIX for development, but the new requirement is to use the system perl for AIX and Linux. I thought that might be a problem, which is why I have been trying so hard to push the pp solution (I have compiled different versions for both platforms and it works great).

    I have been asked to "remove any dependencies" from this particular script if I can't come up with a viable solution for distribution. I'd rather not re-write the wheel.

    Does anyone know of a good write-up on using local::lib for distribution?

      kcalvelli,
      I might be able to make this easy for you. The system AIX Perl is built with the non-free propietary IBM compiler. As a result, you can not use any non pure Perl modules because they will not be binary compatible unless they have an expensive license. Update: Let me give a concrete example. Let's say they want to connect to a database (DB2, Oracle, Pg, etc). You can't build DBD::DB2 with gcc and have it work with the system Perl.

      Cheers - L~R

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (7)
As of 2024-04-23 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found