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

Re: How to run a linux/perl-based website on a CD for Windows

by ww (Bishop)
on Jul 09, 2012 at 23:25 UTC ( #980780=note: print w/ replies, xml ) Need Help??


in reply to How to run a linux/perl-based website on a CD for Windows

Your hope to "somehow precompile the code, for wider compatibility and for source protection,...." isn't one you can satisfy with an executable Perl script. Simply can't be done. If it can be executed, you can do no more than obfuscate.

As to the request from the individual who "tracked (you) down," it'll be a lot easier -- IMO -- to provide code, the DB and its contents, and the HTML/CSS and let that person bring it up as a working site with whatever mods are required for whatever purpose the requester has in mind.

A small website will fit easily enough on one or perhaps 2 CDs; but for any real utility, I suspect the whole shooting match needs to go on a server, even its only for an intranet.

Afterthought: I've been assuming that the supliant specified that your work run under Windows and from a CD. That may have to be negotiated. But as far as being "linux/perl-based" I see no reason that the code won't be compatible, unless you are using *nix-only modules like, say, IO:stty or something that has such a module in its requirements.


Comment on Re: How to run a linux/perl-based website on a CD for Windows
Download Code
Re^2: How to run a linux/perl-based website on a CD for Windows
by Polyglot (Monk) on Jul 10, 2012 at 00:54 UTC
    Yes, I should be able to fit it all onto one CD. If all I can do for code protection is to obfuscate it, do you have a recommendation? I was hoping to be able to use a compiled binary, but if this not a workable solution, I think you may be right.

    Regarding the modules I'm using, aside from strict, CGI, and DBI, the main one I'll need is Encode. I have gotten the whole thing running via Server2Go, but its interface is not especially intuitive or user-friendly. I don't know how to have the CD automatically boot to the site page without the individual having to navigate to it after having started the server program.

    Blessings,

    ~Polyglot~

      • Protection: Its the nature of Perl. You can't protect the source of an executable. And if you're willing to give the product away... why, then, give it away.... or charge the requester a fee, and attach a copywrite notice. (That won't protect your code, either, but maybe it'll make you feel better... and if requester turns out to be making a zillion Euro or dollars or whatever with your work, that may give you some basis to sue.)
      • Boot to the site page: M$ (or Google) will probably tell you how to do what it calls 'autorun;' but again, unless the individual who asked for your work is naive, s/he should be able to install Perl; set up an apache server, MYSQL, and whatever else (my memory is slipping) is needed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-08-22 23:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (168 votes), past polls