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.

Perl 5.8.4

Discussion in 'General Discussion' started by LEEnoble, Oct 20, 2004.

  1. LEEnoble

    LEEnoble Active Member

    Joined:
    Sep 11, 2004
    Messages:
    34
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    England, UK
    Anyone know what i type in SSH to install perl 5.8.4 onto my server? Thanks.
     
  2. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    Code:
    wget [url]http://layer1.cpanel.net/perl584installer.tar.gz[/url]
    tar -zxvf perl584installer.tar.gz
    cd perlinstaller
    ./install
    
     
  3. procam

    procam Well-Known Member

    Joined:
    Nov 24, 2003
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
  4. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    You can install Perl 5.8.5 directly from CPAN as well.

    There is only one change you need to make in the default settings to make it work with cpanel.
    Code:
    cpan
    install N/NW/NWCLARK/perl-5.8.5.tar.gz
    Accept all the default answers EXCEPT the following:

    Installation prefix to use? (~name ok) [/usr/local]

    Instead of pressing ENTER/RETURN to accept the default you MUST type:

    /usr

    From there on, you can accept the defaults.

    If you're going to upgrade, you might as well get the latest version.

    I'd also run:
    Code:
    /scripts/upcp
    after the Perl upgrade to make sure CPANEL has all the appropriate Perl modules it needs for the new version.
     
  5. procam

    procam Well-Known Member

    Joined:
    Nov 24, 2003
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    Wow

    Aric is on top of things today !!
    Any idea how to repair a broken down YUM on fedora Core 1 ?
    Ive ripped it out of a box several times and put it back in done it text book and the box still wont run updates says there no yum module !!!!!!!!!!!! Never had this happen ever before~~
    :confused:
     
  6. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    lol. No, sorry, I don't have any servers with FC1 on them. I have RHEL 3.3 or CentOS 3,3 on my servers. Perhaps someone else will have some ideas on how to fix it for you.

    Have you tried specifying the location of yum when running it... say something like /usr/local/bin/yum or wherever it happens to be on your machine?
     
  7. procam

    procam Well-Known Member

    Joined:
    Nov 24, 2003
    Messages:
    123
    Likes Received:
    0
    Trophy Points:
    16
    Yum Broken

    Actually yes I did figure it out took a while but if anybody else has this problem
    http://forum.ev1servers.net/showthread.php?threadid=40351&highlight=cpanel+yum+wont+work

    Less the stuff for the redhat 9 to fedora conversion the yum install by these instructions worked like a charm - if you have previously installed make sure you deinstall yum {like mine was damaged} then just install - update and bind it to fedora - upcp per the instructions boom its healed!!!

    :eek:
     
  8. damainman

    damainman Well-Known Member

    Joined:
    Nov 13, 2003
    Messages:
    515
    Likes Received:
    0
    Trophy Points:
    16
    Does cpanel update perl automatically? I currently have 5.8.1 on a RHE server.
     
  9. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    No. CPANEL does not. If you have it set to do so, your OS provider might, but typically they try to "upgrade" you to an older version, which is why it's probably best to stop that from happening (for example in up2date --config)
     
  10. Sinewy

    Sinewy Well-Known Member

    Joined:
    May 15, 2004
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney, Australia
    cPanel Access Level:
    DataCenter Provider
    you can also do this:

    wget http://tdknights.com/buildapache/perlinstall
    chmod 755 perlinstall
    ./perlinstall

    this will get you to the latest perl (5.8.5). it is my own script and works quite well on all platforms.

    this will overwrite perl on top of your previous versions.

    you will still need to run /scripts/upcp afterwards to be sure you have the right perl mods.
     
  11. damainman

    damainman Well-Known Member

    Joined:
    Nov 13, 2003
    Messages:
    515
    Likes Received:
    0
    Trophy Points:
    16
  12. Aric1

    Aric1 Well-Known Member

    Joined:
    Oct 15, 2003
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    The installer basically just runs the standard perl installer but it saves you from having to select /usr as the install location and pressing ENTER through all the other options. ;-)

    FYI for anyone who missed it, 5.8.6 is now the latest stable release of Perl.
     
  13. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    is there any benefit to running the latest perl version? It seems I've heard of a number of issues/problems caused by upgrading perl (especially for cpanel), and I haven't particularly heard of any perl vulnerabilities in the past couple years.
     
  14. Sinewy

    Sinewy Well-Known Member

    Joined:
    May 15, 2004
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney, Australia
    cPanel Access Level:
    DataCenter Provider
    my instructions posted above will now get 5.8.6.

    nice and simple without worries.
     
  15. damainman

    damainman Well-Known Member

    Joined:
    Nov 13, 2003
    Messages:
    515
    Likes Received:
    0
    Trophy Points:
    16
    Just curious, what's the difference/advantage of using your script as to using the perl script from cpanel?
     
  16. dezignguy

    dezignguy Well-Known Member

    Joined:
    Sep 26, 2004
    Messages:
    534
    Likes Received:
    0
    Trophy Points:
    16
    Because his install the latest 5.8.6 instead of cpanel's 5.8.4?

    But personally I wouldn't use it... I try to use trusted (or even semi-trusted) sources for programs I run... someone's script off a forum doesn't meet that. And it would be faster for me to just install the source and change the settings for it than review his code.
     
  17. Sinewy

    Sinewy Well-Known Member

    Joined:
    May 15, 2004
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney, Australia
    cPanel Access Level:
    DataCenter Provider
    it's a simple perl script which thaphantom wrote ages ago, i just changed it with the new version.

    if you get it and have a look at it, all it's doing is telling your server to wget the source off mirror.kernel.org, untarring, configuring, making and make installing.

    there's nothing malicious there, just a simple perl script telling your server what to do.
     
  18. NetX

    NetX Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16

    That's true, the script is inofensive, just install perl from mirror.kernel.org

    It works!
     
  19. Myacen

    Myacen Well-Known Member

    Joined:
    Apr 6, 2002
    Messages:
    222
    Likes Received:
    0
    Trophy Points:
    16
    We can't seem to get moveable type working since upgrading to 5.8.6

    Got an error: Unsupported driver MT::ObjectDriver::DBM: DB_File object version 1.810 does not match bootstrap parameter 1.806 at /usr/lib/perl5/5.8.6/i686-linux/DynaLoader.pm line 253. Compilation failed in require at lib/MT/ObjectDriver/DBM.pm line 9. BEGIN failed--compilation aborted at lib/MT/ObjectDriver/DBM.pm line 9. Compilation failed in require at (eval 3) line 1. BEGIN failed--compilation aborted at (eval 3) line 1.

    Tried a manual recompile of both perl and the module no help
     
  20. NetX

    NetX Well-Known Member

    Joined:
    Jun 18, 2003
    Messages:
    177
    Likes Received:
    0
    Trophy Points:
    16
    #20 NetX, Feb 5, 2005
    Last edited: Feb 5, 2005
Loading...

Share This Page