Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

comment on

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

Can anyone think of an example of using something like Module::Install to use to make a Makefile.PL/Build.pl script to install a program destined to live in a cgi-bin?

I've been continually trying to make my own build system work well and I've basically been struggling with the Bundle:: way of doing things.

Basically, my CGI App relies on a very long list of CPAN modules. Currently, what I do is just add these CPAN modules in the distribution itself. This makes it easy for non-developers to use the program, but to have these modules added in a way that is easy to distribute in this setup is quite a bit of black magic. For example, some modules can only be included if there's a Pure Perl version of the module, some modules are basically hacked versions so they *will* only be Pure Perl versions. It's very messy. And it gives me many headaches.

I'd like to, at the very least have an alternative distribution of my program that doesn't have the CPAN modules installed, but has a install script that'll fetch the correct ones automatically and have these modules installed in the person's site or local perllib. Sounds exactly like what Module::Install is made for.

But, it *does* seem to be Module-specific, and not CGI App specific. Having not gone through the process of trying this all out (it's d/l'ing from CPAN as I type) is there any words of wisdom in using Module::Install for CGI Apps? My App basically contains one perl script, and an army of its own Modules for support.

Anyways, I'll most likely report back on my findings.

 

-justin simoni
skazat me


In reply to Using Module Install to install CGI Apps by skazat

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 drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-20 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found