Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Red Hat linux and have installed PHP 4.4.7 version. Now I want to add GD library with that installed PHP. How can I do that? How can I check that GD library is not installed. Please let me know. It's very urgent.
I am using Red Hat linux and have installed PHP 4.4.7 version. Now I want to add GD library with that installed PHP. How can I do that? How can I check that GD library is not installed. Please let me know. It's very urgent.
Thank You
What version of RH Linux? If you're using RHEL 5 then just "yum install php-gd".
If you're using some ancient version of old RedHat like RedHat 9 then, err, you shouldn't be because it is EOL and unsupported.
As an aside, PHP 4.x is also EOL as of 2008-08-08 so you really shouldn't be using that in a production environment either.
Create yourself a php info script to view from your server:
Code:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>
Or you can run php -m to display all modules loaded, which gd is usually loaded as.
As for the older version of PHP, well, Red Hat is behind in the times, they'll use what was stable at the time. PHP 4.x was recently decommissioned for use, I'm sure Red Hat will come up to speed sooner or later.
But yeah, Red Hat should have available the php-gd package, which usually gets loaded by default if you install php, even in RHEL 4 versions.
Create yourself a php info script to view from your server:
Code:
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
// Show just the module information.
// phpinfo(8) yields identical results.
phpinfo(INFO_MODULES);
?>
Or you can run php -m to display all modules loaded, which gd is usually loaded as.
As for the older version of PHP, well, Red Hat is behind in the times, they'll use what was stable at the time. PHP 4.x was recently decommissioned for use, I'm sure Red Hat will come up to speed sooner or later.
But yeah, Red Hat should have available the php-gd package, which usually gets loaded by default if you install php, even in RHEL 4 versions.
I have been installed red hat linux 9, and installed PHP 4.4.7. Which version of gd should I install for gif, jpeg and png and How I will be able to do so? Please let me know.
I have been installed red hat linux 9, and installed PHP 4.4.7. Which version of gd should I install for gif, jpeg and png and How I will be able to do so? Please let me know.
RedHat Linux 9 doesn't exist any more. It has been EOL for over 4 years! Why are you using it?
If you want a free version of RedHat-like Linux suitable for a server then use CentOS 5.x - using that you won't have any problems installing php-gd
I have been installed red hat linux 9, and installed PHP 4.4.7. Which version of gd should I install for gif, jpeg and png and How I will be able to do so? Please let me know.
So why are you posting the same question in multiple threads?
Did you not read my replies? If not, go read them again, they're pretty clear with the actions you need to take to move forward with a solution for yourself.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.