Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: how ship perl in my application?

by xiaoyafeng (Chaplain)
on May 11, 2012 at 08:47 UTC ( #969939=note: print w/ replies, xml ) Need Help??


in reply to Re: how ship perl in my application?
in thread how ship perl in my application?

Thanks, Corion!

I compiled a toy program embed in perl link with perl512.lib, and rename perl directory then copy perl512.dll in the same directory where program is, the program works fine.

But the coming problem is how ship modules? I'd like put those in the specific directory instead of C:\perl





I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction


Comment on Re^2: how ship perl in my application?
Re^3: how ship perl in my application?
by Anonymous Monk on May 11, 2012 at 08:53 UTC

      Hi Anonymous Monk,

      I've downloaded the and this is a great tool. but IMHO, maybe it doesn't fit my requirement. I have a c program embed with perl, and works fine in my machine now. But I don't want user have to install a perl distribution for using this. Cava packager is a nice tool to package perl script into a executable as pp dose, but it might not fit this scenario. please point out if I'm wrong





      I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Re^3: how ship perl in my application?
by Corion (Pope) on May 11, 2012 at 09:04 UTC

    I think the Perl interpreter will look in a sibling directory to the executable:

    C:\Programs\xiaoyafeng_perl\bin\xyf_p.exe C:\Programs\xiaoyafeng_perl\site\...

    ... but you can also in interpreter startup push directories onto @INC to make the Perl interpreter search there.

      Thanks again, Corin! Your reply does clear up my doubts. I'll test it right now ;)in coming weekend.




      I am trying to improve my English skills, if you see a mistake please feel free to reply or /msg me a correction

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (8)
As of 2014-07-23 02:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (131 votes), past polls