Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ImageMagick under /usr/local/cpanel/src/3rdparty/gpl

Discussion in 'General Discussion' started by sehh, Oct 14, 2010.

  1. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Europe
    My servers use CentOS 4.8, which is rather old, so the default RPM package for ImageMagick is version 6.0.

    But, when I run "convert --version" I noticed that my run-time version is actually 6.3.3, which is installed under /usr/local/bin. Which sounds like a custom compiled version that came with my servers when they were first setup and cPanel was installed.

    Ok, so the .src archive must have been used to "make" and "make install" the 6.3.3 version, and after looking around, I found this directory:

    /usr/local/cpanel/src/3rdparty/gpl

    Interestingly, it has a lot of stuff used by cPanel "under the hood". One archive is "ImageMagick-6.4.8-2.tar.gz".

    So here are my questions:

    Is this directory an official one? Does everyone have it with loads of archives of various tools?

    What is the correct way to upgrade to the latest version of ImageMagick, without braking cPanel? Should I decompress the "ImageMagick-6.4.8-2.tar.gz" archive from that directory, and "make install" it?

    Any help would be appreciated.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hi sehh,

    You could simply run:

    Code:
    /scripts/installimagemagick --force
    To see the results. I tried this on my system, and it installed the following:

    Code:
    # convert --version
    Version: ImageMagick 6.4.8 2010-10-14 Q16 http://www.imagemagick.org
    Copyright: Copyright (C) 1999-2009 ImageMagick Studio LLC
    As for /usr/local/cpanel/src/3rdparty/gpl location, yes, many applications we utilize are stored in that location for retrieval.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Europe
    I tried and got:

    I'm using the latest STABLE.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Europe
    ok I run it again and it completed with:

    But when I run it I see its still version 6.3.3:

    I looked at the binary "convert" (part of the ImageMagick), and its located in two places:

    /usr/bin/convert
    /usr/local/bin/convert

    The first is the new 6.4.8 version, and the second is the old 6.3.3, but my path executes binary files from the /usr/local/bin path first.

    Can you please tell me how to uninstall the old 6.3.3 version from /usr/local/bin please?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Simply try moving /usr/local/bin/convert and symlink the other one:

    Code:
    mv /usr/local/bin/convert /usr/local/bin/convert.bak
    ln -s /usr/bin/convert /usr/local/bin/convert
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. sehh

    sehh Well-Known Member

    Joined:
    Feb 11, 2006
    Messages:
    579
    Likes Received:
    5
    Trophy Points:
    168
    Location:
    Europe
    That was my just thought as well, but then I found out that the old ImageMagick was installed with "make install" from the source package and there are a lot more files under /usr/local/ than just the base commands like "convert".

    For example:

    and the above is by just looking for the keyword "magick".

    is there a proper way to uninstall the whole thing?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Simply move them to .bak
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice