Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Sep 2005
    Posts
    74

    Default Recompile Perl

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by viptexting
    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
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Sep 2005
    Posts
    74

    Default

    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. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  6. #6
    Member
    Join Date
    Sep 2005
    Posts
    74

    Default

    Quote Originally Posted by chirpy
    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

  7. #7
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Replies: 1
    Last Post: 08-22-2011, 11:03 AM
  2. Recompile mysql 4.1.22?
    By bpeikes in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 09-14-2007, 01:46 PM
  3. Just recompile only PHP
    By benito in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 03-17-2006, 10:48 AM
  4. Can I recompile Exim?
    By DevilBear in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-03-2004, 04:35 PM
  5. mysql recompile
    By torwill in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-11-2003, 04:35 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube