Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^5: How to convert bunch of perl file + other dependent Input files Into a single executable

by marto (Cardinal)
on Mar 02, 2017 at 10:36 UTC ( [id://1183387]=note: print w/replies, xml ) Need Help??


in reply to Re^4: How to convert bunch of perl file + other dependent Input files Into a single executable
in thread How to convert bunch of perl file + other dependent Input files Into a single executable

CPAN shows v1.036, you must be installing this via some other package manager (PPM?). The version you've installed is not built for the version of perl you have installed. They have to be the same, see rt://92352. To install build the live release against your current version of perl use the following from the command prompt:

cpan pp

If you're working on Windows make life easy for yourself by using strawberry perl, as it ships with a sane build environment, and a bunch of other useful things as standard. To install a C compiler and build tools for ActiveState do:

ppm MinGW

Then install via cpan as mentioned above.

  • Comment on Re^5: How to convert bunch of perl file + other dependent Input files Into a single executable
  • Select or Download Code

Replies are listed 'Best First'.
Re^6: How to convert bunch of perl file + other dependent Input files Into a single executable
by rockyurock (Acolyte) on Mar 02, 2017 at 11:42 UTC
    If I Install strawberry perl then Can I use the same build command to convert .pl into .exe as well ?

      The syntax of the pp command provided isn't specific to the version of perl. Your issue is being caused by some packaging problem with ActiveState. I've been using Strawberry since it was in alpha (or maybe beta) many years ago, and have never had any problems. I can only report that it's made life much easier for me when I have to work on Windows systems.

Re^6: How to convert bunch of perl file + other dependent Input files Into a single executable
by rockyurock (Acolyte) on Mar 02, 2017 at 11:40 UTC
    I remember tried Installing pp with both CPAN and ppm. just now I also tried with CPAN again . but It's again giving me the same Error LN0v.exe: Perl lib version (5.24.1) doe sn't match executable 'perl.exe' version (5.24.0) at C:/Perl64/lib/Config.pm lin e 62.

      I just upgraded to Strawberry perl v 5.24.1, installed pp as described above and created a test executable use the method described above and all is well. I can't replicated this problem, the code runs as expected. I can't comment further unless you show more details of what you've tried (cpan/ppm commands, their output, module versions installed etc). How do I post a question effectively?.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-19 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found