Re: Compiling a CGI program
On Wed, 4 Sep 2002 22:05:17 +0300, [EMAIL PROTECTED] (Octavian Rasnita) wrote: >I've tried (without success) to compile a CGI application made in Perl using >perlcc. > >I've tried then a test program but it also doesn't want to compile. > >#!/perl/bin/perl >print "Content-type: text/html\n\n"; >print "Test OK"; > >Can I make a Windows executable using perlcc? >Can you give me hints about what should I do to make the executable? You are better off using one of the "commercial" programs to do this. You might have to pay 100 bucks. > >When trying to compile this small program, it made a file a.out and another >..obj file but I don't know what to do with these files. The a.out is the default name for a compiled program, unless you give the -o outputname when you compile. Try renaming it to myprog.exe and see if it runs. >I've tried using the -B parameter to compile directly, but it gave me a lot >of assembly errors. > >When trying to compile a bigger one, it made a .c file then the program >continued to work for a long time with no result. >It made a .out file but its size was 0. That means there was an error. You will not have good luck with perlcc for most scripts. It chokes when you try to add modules. Get a commercial version from one of the windows vendors, they reportedly work pretty good. Although they don't give you any performance gain. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compiling a CGI program
You don't need to compile Perl programs. If you are worried about speed, use mod_perl. If you are worried about someone "stealing" your script, don't. Even if it is "compiled", if someone really wants it they only have to decompile it... Brent "Octavian Rasnita" To: <[EMAIL PROTECTED]> <[EMAIL PROTECTED]cc: (bcc: Brent Michalski/STL/MASTERCARD) > Subject: Compiling a CGI program 09/04/02 02:05 PM Hi all, I've tried (without success) to compile a CGI application made in Perl using perlcc. I've tried then a test program but it also doesn't want to compile. The program is: #!/perl/bin/perl print "Content-type: text/html\n\n"; print "Test OK"; I use Visual Studio 6 under Windows 2000. Can I make a Windows executable using perlcc? Can you give me hints about what should I do to make the executable? When trying to compile this small program, it made a file a.out and another ...obj file but I don't know what to do with these files. I've tried using the -B parameter to compile directly, but it gave me a lot of assembly errors. When trying to compile a bigger one, it made a .c file then the program continued to work for a long time with no result. It made a .out file but its size was 0. Thank you very much for any hint. Teddy, My dear email address is [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Compiling a CGI program
i don't know the answer, but i hope if someone does that they will share it. i need to learn how to compile my scripts... i'm on a red hat 7.x box, but i do manage a couple of other linux-type servers that don't use red hat... my hope it that i can create something that is portable (even if only to a closely related environment)!?!?-jim Octavian Rasnita wrote: > Hi all, > > I've tried (without success) to compile a CGI application made in Perl using > perlcc. > > I've tried then a test program but it also doesn't want to compile. > > The program is: > > #!/perl/bin/perl > > print "Content-type: text/html\n\n"; > print "Test OK"; > > I use Visual Studio 6 under Windows 2000. > > Can I make a Windows executable using perlcc? > > Can you give me hints about what should I do to make the executable? > > When trying to compile this small program, it made a file a.out and another > ..obj file but I don't know what to do with these files. > I've tried using the -B parameter to compile directly, but it gave me a lot > of assembly errors. > > When trying to compile a bigger one, it made a .c file then the program > continued to work for a long time with no result. > It made a .out file but its size was 0. > > Thank you very much for any hint. > > Teddy, > My dear email address is [EMAIL PROTECTED] > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Compiling a CGI program
Hi all, I've tried (without success) to compile a CGI application made in Perl using perlcc. I've tried then a test program but it also doesn't want to compile. The program is: #!/perl/bin/perl print "Content-type: text/html\n\n"; print "Test OK"; I use Visual Studio 6 under Windows 2000. Can I make a Windows executable using perlcc? Can you give me hints about what should I do to make the executable? When trying to compile this small program, it made a file a.out and another ..obj file but I don't know what to do with these files. I've tried using the -B parameter to compile directly, but it gave me a lot of assembly errors. When trying to compile a bigger one, it made a .c file then the program continued to work for a long time with no result. It made a .out file but its size was 0. Thank you very much for any hint. Teddy, My dear email address is [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]