Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

perl2exe problem

by anu_1 (Acolyte)
on Jun 15, 2011 at 07:09 UTC ( #909731=perlquestion: print w/replies, xml ) Need Help??

anu_1 has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to execute an exe on i386 Sun 5.10 platform. The exe has been created by perl2exe with the following command

./perl2exe -tiny -v -platform=SunOS -o=test.exe

When trying to execute the exe , I am getting the error "Cannot execute". The same exe is running on SPARC. I checked the lib under perl5 folder it contains sun4-solaris. Does it mean the exe will be created for SPARC only ..? Thanks a lot for help

Replies are listed 'Best First'.
Re: perl2exe problem
by marto (Cardinal) on Jun 15, 2011 at 09:58 UTC

    SPARC and intel are different architectures, your SPARC binary won't work on an intel platform.

Re: perl2exe problem
by sundialsvc4 (Abbot) on Jun 15, 2011 at 12:21 UTC

    Every operating system and every computer architecture is different.   Software built to run natively in one environment won’t run on the others.   The only reason why Perl programs “run” is that, from the operating system’s point-of-view, it is the Perl interpreter that is actually “running.”   Both it and any XS code that is in-use was custom built for the environment.   Any programming which “wraps” a Perl program into “an executable” must by definition do so in an operating-system dependent way, so that the resulting program not only runs, but does the right thing.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://909731]
Approved by Old_Gray_Bear
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2022-05-16 14:28 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (63 votes). Check out past polls.