Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
perlcc replacement, alternatives, options?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
DNAspark99
Guru
Guru


Joined: 03 Sep 2004
Posts: 321

PostPosted: Wed Aug 17, 2011 9:12 pm    Post subject: perlcc replacement, alternatives, options? Reply with quote

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
View user's profile Send private message
DNAspark99
Guru
Guru


Joined: 03 Sep 2004
Posts: 321

PostPosted: Sat Aug 20, 2011 8:33 am    Post subject: Reply with quote

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
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Aug 20, 2011 5:23 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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