View previous topic :: View next topic |
Author |
Message |
DNAspark99 Guru
Joined: 03 Sep 2004 Posts: 321
|
Posted: Wed Aug 17, 2011 9:12 pm Post subject: perlcc replacement, alternatives, options? |
|
|
Hello.
Long story short, recently upgraded perl (and other stuff) on a machine.
All went according to plan.
Except for one thing:
Newer perl versions no longer include perlcc.
We've got a perl script that was 'compiled' using perlcc, but now it can't run because it's been linked to the old libperl version, which is no longer available.
The 'compiled script' executable is still required - it's part of a much larger custom software solution.
So, is there a quick & easy replacement or alternative for perlcc? |
|
Back to top |
|
|
DNAspark99 Guru
Joined: 03 Sep 2004 Posts: 321
|
Posted: Sat Aug 20, 2011 8:33 am Post subject: |
|
|
Well, as a workaround I've gotten a very basic c wrapper now that seems to do the trick
Code: | #define REAL_PATH "/path/to/myscript.pl"
main(ac, av)
char **av;
{
execv(REAL_PATH, av);
}
|
|
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21633
|
Posted: Sat Aug 20, 2011 5:23 pm Post subject: |
|
|
If that shim works, could you not just place the non-compiled script text under the same name and have that work too? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|