viptexting

Well-Known Member
Sep 19, 2005
74
0
156
I need to recompile perl to include threads support.

Can anyone tell me if there is a particular cPanel script to run to recompile the cPanel version of perl to do this?

Also does anyone know if I do recompile if cPanel auto-updates are likely to update perl at some point and revert to the original configuration?
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
viptexting said:
I need to recompile perl to include threads support.

Can anyone tell me if there is a particular cPanel script to run to recompile the cPanel version of perl to do this?

Also does anyone know if I do recompile if cPanel auto-updates are likely to update perl at some point and revert to the original configuration?
To re-compile Perl, go to:
http://forums.cpanel.net/showthread.php?t=53766
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,462
25
473
Go on, have a guess
Which won't help the OP answer his question at all.

I'm not aware of a simple method to compile perl with threads support other than selecting it if you do a manual perl installation. cPanel itself won't perform a perl recompilation, so you should be safe from that, it only upgrades the perl modules from cpan. However, there are issues with threaded perl. I'd recommend installing a threaded version of perl in a different location rather than the default, for example into /opt. You can then call it directly for whatever urpose you need the threaded environment for and leave the default perl alone.
 

viptexting

Well-Known Member
Sep 19, 2005
74
0
156
Thanks for the info, I was thinking that might be the sensible thing to do, what sort of issues are there with threaded Perl? I really just need a stable multithreaded environment for some very simple scripts I am going to write. I've had someone recompile perl for me on another server and it worked just great for a similar project.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,462
25
473
Go on, have a guess
I believe some of the modules on cpan have problems with threaded perl. I'd still err on the side of caution and install it separately if possible.
 

viptexting

Well-Known Member
Sep 19, 2005
74
0
156
chirpy said:
I believe some of the modules on cpan have problems with threaded perl. I'd still err on the side of caution and install it separately if possible.
Sounds like the best idea for sure if this is the case!
I am only writing a simple script to grab some data from a MySQL database and perform a POST to a remote host, however want to add multithreading support so that a slow HTTP connection does not result in the script lagging
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,462
25
473
Go on, have a guess
It might be possible to use forked child processes instead of multi-threading for that reason, if you find recompiling perl to be more trouble than it's worth.