Forums

Resolved
0 votes
I would like to know if it is possible to install GD Library and / or ImageMagick.
If yes, how do I do that (I'm a newbie, sorry).
Sunday, January 10 2010, 07:55 AM
Share this post:
Responses (17)
  • Accepted Answer

    Sunday, January 10 2010, 08:17 AM - #Permalink
    Resolved
    0 votes
    I found the solution a few minutes after posting the topic:

    To install GD library via SSH:

    - yum install gd gd-devel php-gd

    Works like a charm!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, January 11 2010, 03:10 PM - #Permalink
    Resolved
    0 votes
    It is enough to do:
    yum install php-gd

    If it is for PHP scripts. ImageMagick is also easy to install with:
    yum install ImageMagick

    - Marcus
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 18 2010, 11:23 PM - #Permalink
    Resolved
    0 votes
    I have a question. Once you install the GD library as instructed above (that went fine, and thanks for that), do you have to issue any commands to run it?

    I am just not a gooroo (yet) and need help. I installed OSTicket today on my ClearOS system, and it has a CAPTCHA feature that when I enable it, it alerts me of an error and tells me that "The GD extension required" I then installed GD ad mentioned above and I still get the error.

    Any and all help appreciated!

    Thanks,

    George
    :(
    The reply is currently minimized Show
  • Accepted Answer

    Friday, November 19 2010, 10:56 PM - #Permalink
    Resolved
    0 votes
    PHP-GD is a PHP extension and loaded at service startup, you may need to reload the web server...

    service httpd restart
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, November 23 2010, 12:38 AM - #Permalink
    Resolved
    0 votes
    Thanks Tim. That didn't get it going (I still get the error), but by the looks of it it is a very useful comand to have. I am relatively new to Linux.. so I write things like this down for future use.

    If you have time to glance at the osTicket app and can suggest anything else, I'd appreciate it. I am thinking I will need to download the RPM for that particular flavor of GD.. but I don't want to mess anything up. Thanks for your help. It also has an encryption module that is needed, but it will work without it.. I'd love to install that too if I knew how to do it without the risk of my ignorance messing up things.. hehe

    Sincerely,

    George
    The reply is currently minimized Show
  • Accepted Answer

    w1z4rd
    w1z4rd
    Offline
    Monday, August 29 2011, 07:52 AM - #Permalink
    Resolved
    0 votes
    Hi,

    I am trying to install gd on my server, but i get the following error:

    [root@hyperbase ~]# yum install php-gd
    Loading "kmod" plugin
    Loading "protect-packages" plugin
    Setting up Install Process
    Parsing package install arguments
    Resolving Dependencies
    --> Running transaction check
    ---> Package php-gd.i386 0:5.1.6-27.v5.3.1 set to be updated
    --> Processing Dependency: php-common = 5.1.6-27.v5.3.1 for package: php-gd
    --> Running transaction check
    ---> Package php-common.i386 0:5.1.6-27.v5.3.1 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Installing:
    php-gd i386 5.1.6-27.v5.3.1 base-updates 117 k
    Installing for dependencies:
    php-common i386 5.1.6-27.v5.3.1 base-updates 154 k

    Transaction Summary
    =============================================================================
    Install 2 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 271 k
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    ERROR with rpm_check_debug vs depsolve:
    Package php-cli needs php-common = 5.2.17-2.clearos, this is not available.
    Package php-pdo needs php-common = 5.2.17-2.clearos, this is not available.
    Package php-ldap needs php-common = 5.2.17-2.clearos, this is not available.
    Package php-imap needs php-common = 5.2.17-2.clearos, this is not available.
    Package php needs php-common = 5.2.17-2.clearos, this is not available.
    Package php-mysql needs php-common = 5.2.17-2.clearos, this is not available.
    Package php-mbstring needs php-common = 5.2.17-2.clearos, this is not available.


    Any idea on how to fix this?

    Not sure if this command will help:

    [root@hyperbase ~]# rpm -qa | grep php-
    webconfig-php-mysql-5.2.17-1.1.v5
    php-common-5.2.17-2.clearos
    php-imap-5.2.17-2.clearos
    php-ldap-5.2.17-2.clearos
    php-mbstring-5.2.17-2.clearos
    app-php-5.2-10
    php-kolab-2.2.0-3.2.v5
    webconfig-php-5.2.17-1.1.v5
    php-pdo-5.2.17-2.clearos
    php-mysql-5.2.17-2.clearos
    php-5.2.17-2.clearos
    php-cli-5.2.17-2.clearos
    webconfig-php-imap-5.2.17-1.1.v5


    Is pp-php-5.2-10 and php-5.2.17-2.clearos two different versions of php conflicting with each other? If so how would I resolve this? Uninstall the older version?
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 29 2011, 08:15 AM - #Permalink
    Resolved
    0 votes
    You have upgraded PHP to 5.2.17, so you need to install the version of PHP GD for that build. It's available in my repo
    yum --enablerepo=timb install php-gd
    service httpd restart
    The reply is currently minimized Show
  • Accepted Answer

    w1z4rd
    w1z4rd
    Offline
    Monday, August 29 2011, 10:02 AM - #Permalink
    Resolved
    0 votes
    Hey time,

    Thanks... I went the long way around :D

    I first removed php-common (that removed everything associated with it), I then reinstalled everything that was removed from the normal repos (in case I broke lots of stuff.)

    Then I used your repo, and installed it. Basically I took the long way around and it looks like this:

    yum update <==----- This will take a little while

    yum remove php-common <=------ this will remove a ton of stuff, including the conflicting versions

    yum install php <=--- This reinstalls php

    yum install php-mysql horde-imp php-ldap php-imap app-php php-mbstring app-horde php-pdo <=---- this reinstalls everything the remove command removes

    yum install php-gd gd gd-devel <=------ this installs all the GD packages

    However, now we are back to an older version so we need to upgrade php to the newer version:

    yum --enablerepo=timb upgrade php <==--- upgraded php from your repo (except this time it did the gd libraries as well).

    service httpd restart

    All working :D

    Were the GD libraries recently added because Im sure I ran the yum --enablerepo=timb upgrade php command a while back on this server, but didnt check the GD libraries. Either that or I was just being an idiot.

    I meant to come back and reply to this message to update it.
    service httpd restart <=-------------- this restarts apache
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, August 30 2011, 12:24 PM - #Permalink
    Resolved
    0 votes
    That is the long way round!

    The php-gd library has been there all the time, but the 'upgrade' command will only upgrade what you have already installed :)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, June 25 2012, 07:13 PM - #Permalink
    Resolved
    0 votes
    I had this very same issue. It looks like if you do the OS upgrade first and then try to run Tim's repo, it fails with the current messages. I followed the previous poster's steps and was able to install GD cleanly. Took a day to figure out!

    It's probably fine in 6.x. We're stuck with 5.2 until the update scripts are sent out for those of us using ClearBox.
    The reply is currently minimized Show
  • Accepted Answer

    anwoke8204
    anwoke8204
    Offline
    Wednesday, November 21 2012, 03:40 AM - #Permalink
    Resolved
    0 votes
    hi, im trying to install gd library and I get the following when I run yum install gd gd-devel php-gd



    ERROR with rpm_check_debug vs depsolve:
    Package php-pdo needs php-common = 5.3.8-5.clearos, this is not available.
    Package php-cli needs php-common = 5.3.8-5.clearos, this is not available.
    Package php-ldap needs php-common = 5.3.8-5.clearos, this is not available.
    Package php-mbstring needs php-common = 5.3.8-5.clearos, this is not available.
    Package php needs php-common = 5.3.8-5.clearos, this is not available.
    Complete!


    I have confirmed that I have php-common 5.3.8-5.clearos installed

    what am I doing wrong here
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, November 21 2012, 01:38 PM - #Permalink
    Resolved
    0 votes
    Looks like you have installed PHP from the community testing repo for ClearOS 5.2...so to install your extension with the same version (not the version in the main repos) run the following
    yum --enablerepo=timb-testing install php-gd
    service httpd restart
    The reply is currently minimized Show
  • Accepted Answer

    anwoke8204
    anwoke8204
    Offline
    Friday, November 23 2012, 09:32 AM - #Permalink
    Resolved
    0 votes
    ok, I got that installed, but now im trying to install php-xml and am getting the same issues.

    Running rpm_check_debug
    ERROR with rpm_check_debug vs depsolve:
    Package php-pdo needs php-common = 5.3.8-5.clearos, this is not available.
    Package php-cli needs php-common = 5.3.8-5.clearos, this is not available.
    Package php-ldap needs php-common = 5.3.8-5.clearos, this is not available.
    Package php-mbstring needs php-common = 5.3.8-5.clearos, this is not available.
    Package php needs php-common = 5.3.8-5.clearos, this is not available.
    Package php-gd needs php-common = 5.3.8-5.clearos, this is not available.
    Complete!

    I need to install php-xml and php-mcrypt

    any ideas how I can fix this? im trying to install ajaxplorer
    The reply is currently minimized Show
  • Accepted Answer

    Friday, November 23 2012, 10:16 AM - #Permalink
    Resolved
    0 votes
    yum --enablerepo=timb-testing install php-xml php-mcrypt
    ?
    The reply is currently minimized Show
  • Accepted Answer

    Charles
    Charles
    Offline
    Monday, January 07 2013, 10:27 PM - #Permalink
    Resolved
    0 votes
    How to install GD Library and ImageMagick on clearos 6?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 08 2013, 11:07 PM - #Permalink
    Resolved
    0 votes
    The reply is currently minimized Show
  • Accepted Answer

    Jeff
    Jeff
    Offline
    Friday, August 23 2013, 07:32 AM - #Permalink
    Resolved
    0 votes
    Tim,

    I'm trying to install php-dom, php-mcrypt and php-gd for a magento install on Clearbox running 5. I have installed and upgrade PHP using you timb-testing repo but now get the following (same as above) when trying to install the modules. any idea how to correct this?

    =============================================================================
    Package Arch Version Repository Size
    =============================================================================
    Installing:
    php-mcrypt i686 5.3.8-5.clearos timb-testing 46 k
    php-xml i686 5.3.8-5.clearos timb-testing 209 k
    Installing for dependencies:
    php-common i686 5.3.8-5.clearos timb-testing 989 k

    Transaction Summary
    =============================================================================
    Install 3 Package(s)
    Update 0 Package(s)
    Remove 0 Package(s)

    Total download size: 1.2 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running rpm_check_debug
    ERROR with rpm_check_debug vs depsolve:
    Package php-pdo needs php-common = 5.3.19-1.clearos, this is not available.
    Package php-cli needs php-common = 5.3.19-1.clearos, this is not available.
    Package php-mbstring needs php-common = 5.3.19-1.clearos, this is not available.
    Package php-ldap needs php-common = 5.3.19-1.clearos, this is not available.
    Package php needs php-common = 5.3.19-1.clearos, this is not available.
    Package php-imap needs php-common = 5.3.19-1.clearos, this is not available.
    Complete!

    Thanks!

    Jeff
    The reply is currently minimized Show
Your Reply