The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Recompile Perl

Discussion in 'General Discussion' started by viptexting, Aug 1, 2006.

  1. viptexting

    viptexting Well-Known Member

    Joined:
    Sep 19, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
  2. AndyReed

    AndyReed Well-Known Member
    PartnerNOC

    Joined:
    May 29, 2004
    Messages:
    2,222
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Minneapolis, MN
    To re-compile Perl, go to:
    http://forums.cpanel.net/showthread.php?t=53766
     
  3. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
  4. viptexting

    viptexting Well-Known Member

    Joined:
    Sep 19, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    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.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
  6. viptexting

    viptexting Well-Known Member

    Joined:
    Sep 19, 2005
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
Loading...

Share This Page