1. Store
  2. Apps
  3. Hardware
  4. Support
  5. Solutions

ClearFoundation

Forums
Welcome, Guest
How to install GD Library and ImageMagick?
(1 viewing) 1 Guest
Go to bottomPage: 12
TOPIC: How to install GD Library and ImageMagick?
*
#3179
How to install GD Library and ImageMagick? 4 Years, 10 Months ago  
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).
Harry Rikken
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/01/10 02:55 By hrikken.
The administrator has disabled public write access.
 
#3180
Re:How to install GD Library and ImageMagick? 4 Years, 10 Months ago  
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!
Harry Rikken
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3241
Re:How to install GD Library and ImageMagick? 4 Years, 10 Months ago  
It is enough to do:
Code:

yum install php-gd


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

yum install ImageMagick


- Marcus
Marcus Calverley
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#20565
Re:How to install GD Library and ImageMagick? 4 Years ago  
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
George Miller, III
Senior Boarder
Posts: 49
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#20611
Re:How to install GD Library and ImageMagick? 4 Years ago  
PHP-GD is a PHP extension and loaded at service startup, you may need to reload the web server...

Code:

service httpd restart

Tim Burgess
Moderator
Posts: 6665
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#20727
Re:How to install GD Library and ImageMagick? 4 Years ago  
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
George Miller, III
Senior Boarder
Posts: 49
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#31888
Re:How to install GD Library and ImageMagick? 3 Years, 2 Months ago  
Hi,

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

Code:

[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:

Code:

[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?
w1z4rd
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/08/29 03:59 By w1z4rd.
The administrator has disabled public write access.
Activist for government transparency and accountability.
karmicsangoma.blogspot.com/
 
#31889
Re:How to install GD Library and ImageMagick? 3 Years, 2 Months ago  
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
Code:

yum --enablerepo=timb install php-gd
service httpd restart

Tim Burgess
Moderator
Posts: 6665
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#31894
Re:How to install GD Library and ImageMagick? 3 Years, 2 Months ago  
Hey time,

Thanks... I went the long way around

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

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
w1z4rd
Senior Boarder
Posts: 58
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Activist for government transparency and accountability.
karmicsangoma.blogspot.com/
 
#31917
Re:How to install GD Library and ImageMagick? 3 Years, 2 Months ago  
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
Tim Burgess
Moderator
Posts: 6665
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
  get the latest posts directly to your desktop