Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiling Perl

Status
Not open for further replies.

I want to be clear. I want to be able to compile perl written on a Solaris box into an executable able to run on under unix.
 
There are some compilers out there... three I can name off the top of my head:

perl2exe (converts it to a .exe file) - Win32 only afaik

PAR (search CPAN for "PAR")

PerlApp (ActiveState Perl Dev Kit--not a free program) - this is the one I use, afaik it can compile for any OS, but you must compile it on that OS)

PerlBin (perlbin.sourceforge.net) - I never had much success with this one.

The thing with compiling though is, I don't think you can compile a program (in any language, for that matter) to run on an operating system that is different than the one you are compiling it on. I don't know offhand what Solaris is, but if it isn't compatible with Unix, you'll have to compile Perl on the Unix box to make it run on Unix, but a script compiled on Unix would then not run on any other operating system that isn't compatible with it.

-------------
Kirsle.net | Kirsle's Programs and Projects
 
I have been able to compile perl scripts for Unix HP using perl2exe, running it from my Windows machine.
perl version 5.6.1 windows, Perl2Exe V6.00


From dos cmd:
perl2exe -platform=HP-UX -o=executablename scriptname.pl




dmazzini
GSM System and Telecomm Consultant
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top