LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-25-2005, 05:10 AM   #1
notooth
Member
 
Registered: Apr 2005
Posts: 48

Rep: Reputation: 15
How to Install GD?


Can anyone tell me how to instal GD on Linux ES 4? I am a newbie.
 
Old 11-25-2005, 06:42 AM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK - South Coast.
Distribution: Ubuntu (usually the latest....)
Posts: 2,672
Blog Entries: 9

Rep: Reputation: 45
Re: How to Install GD?

Quote:
Originally posted by notooth
Can anyone tell me how to instal GD on Linux ES 4? I am a newbie.
well someone might be able too, but what are you refering too ??? GD? is that gnome desktop or something else? Linux ES 4? again, is that Redhat Enterprise Linux/Enterprise Server 4 or something else ????

Perhaps you could elaborate some.
 
Old 11-25-2005, 06:56 AM   #3
notooth
Member
 
Registered: Apr 2005
Posts: 48

Original Poster
Rep: Reputation: 15
Yes, it's Redhat Linux ES4. A PHP script I am using requires "GD library for PHP." I don't know exactly which GD I need to install.
 
Old 11-25-2005, 09:13 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
You can use RH package manager (yum) to install the relevant php packages. Usually the binary rpms come with gd support precompiled. If you want you can install php from source using the "--with-gd" option to add gd support to you php installation
 
Old 11-26-2005, 08:30 AM   #5
notooth
Member
 
Registered: Apr 2005
Posts: 48

Original Poster
Rep: Reputation: 15
In the PHP Info, I see the following:

Code:
--with-gd=shared' '--enable-gd-native-ttf' '--without-gdbm
Does it mean that I already have GD enabled on my system?

The php scripts using GD still do not work.
 
Old 11-28-2005, 02:00 AM   #6
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
--with-gd=shared' '--enable-gd-native-ttf'
Never seen these options in php 4.x Are you using php 5.x?
Anyway either phpinfo() or the output of
Code:
php -i
should tell you "GD support: enabled" among other thing regarding gd. Here is the output of "php -i" for my box with php compiled from source:
Quote:
gd

GD Support => enabled
GD Version => bundled (2.0.28 compatible)
GIF Read Support => enabled
GIF Create Support => enabled
PNG Support => enabled
WBMP Support => enabled
XBM Support => enabled
 
Old 11-28-2005, 03:14 AM   #7
notooth
Member
 
Registered: Apr 2005
Posts: 48

Original Poster
Rep: Reputation: 15
I am using PHP 4.3.9. I do not see anything look like GD Support from phpinfo(). I think GD is already installed on the system, but I need to enable it.
 
Old 11-28-2005, 03:31 AM   #8
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Why don't you upgrade your php to the latest version 4.4.1? Even for security reasons it's always a good practice to use the latest version of a software. Use your package manager (rpm or yum for RH), if you dont want to compile from source, to install the latest php and perhaps this will also solve your problem.
Doing a little search I found out that gd support in RH is in a different package. you have to run:
Code:
up2date --install php-gd
to install it.

Regards

Last edited by bathory; 11-28-2005 at 03:41 AM.
 
Old 11-28-2005, 04:36 AM   #9
notooth
Member
 
Registered: Apr 2005
Posts: 48

Original Poster
Rep: Reputation: 15
Quote:
Code:
up2date --install php-gd
It required to subcribe to RedHat Network for $96 . I thought Linux was free. I will find another way.
 
Old 11-28-2005, 05:33 AM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
Quote:
I will find another way.
I'm not familiar with RH but I think you can use the Fedora Core packages as well.
 
Old 11-28-2005, 09:01 PM   #11
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
notooth you will have that package on your install CDs somewhere. Linux is free but Redhat Enterprise Linux is not. You can't get any updates from Redhat unless you pay. Fortunately since the distribution is open source some people have rebuilt it from the source packages which Redhat releases to make 'RHEL-rebuild' distros, which are free in every sense of the word, see www.centos.org.
 
Old 01-18-2007, 11:33 PM   #12
Libertes
Member
 
Registered: Jan 2007
Posts: 86

Rep: Reputation: 16
hi notooth,
why dont u use windows 2003 web server for your php Mysql website?
i tried everything with a fedora server everytime u install a plugin or a program it needs another third party code, if you do not know how to install u waste 2-3 hours to 2-3 days to find a solution.
My host www generaldots.com offered me to use a windows server for me, that suited me perfectly.

Also imagemagick, GD2 and etc... have their windows .exe easy setup files which needs experience of a 4 yrs old child's experience. Use them, no need to waste your time, leave linux for experienced big boys.
 
Old 01-19-2007, 03:55 AM   #13
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Code:
yum install php-gd
is even easier than Windows' clunky setup.exe type installers. If you choose a distro with a graphical installer (something that's seemingly not a high priority for server-focused Redhat) like Ubuntu, Suse or Mandriva then a 4-year old literally could install it by pointing and clicking.

Quote:
i tried everything with a fedora server everytime u install a plugin or a program it needs another third party code, if you do not know how to install u waste 2-3 hours to 2-3 days to find a solution.
Sounds like you made the typical Windows-user mistake of trying to install things in Linux in the same way as you do on Win. You generally don't go to each individual website and try and download each component - a lot of the time it's a nightmare as it's mostly un-packaged source code which has to be built.

The whole point of distros is to package software so that, among other things, it's easy to install.
 
Old 01-19-2007, 12:54 PM   #14
Libertes
Member
 
Registered: Jan 2007
Posts: 86

Rep: Reputation: 16
the famous yum command does not worked on my fedora virtual dedicated server,
at some forums i found that there is something missing they offered me redhat
up2date command
i do not have chance to change os from fedora to redhat.

by the way i installed imagemagick which worked with root
but did not worked with apache, i have tried something with chown and chmod
nope it did not worked, i checked all imagemagick site but there was only famaous yum command.

At the same time i tried to build GD2 for PHP 5 which has not been seen on phpinfo().
i searched many many forums official sites of third party plugins and here.
Nothing was the answer. I did everything as mentioned on the developers page of GD2.

So my dear tech staff at www.generaldots.com offered me to install all plugins instead of me once,
but i refused him and said i have to learn it myself.

After a week he offered me again with an option of windows virtual ded. server, i passed to windows all my nightmares finished in 2 hours.
Windows is like going to a dentist after a very disturbing toothache.

3 weeks passed but i am still trying to learn how to install imagemagick and GD2 to a fedora but all linux experts offers some money, this is why i love microsoft. You can solve your own problem with enough materials at Microsoft.com

Here i saw a friend complaining the same problem with no answer under his/her thread. This is
my answer and my experience.

GOD BLESS MICROSOFT
THANK YOU BILL GATES

Last edited by Libertes; 01-19-2007 at 01:02 PM.
 
Old 01-19-2007, 01:17 PM   #15
Electro
Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
If you go with Redhat, you will have to pay.

If you go with a distribution like Gentoo, all the problems you have encounter will go away.
 
  


Reply

Tags
gates, microsoft


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 04:04 PM
make install does not install daemons (clamd snortd). Is this a feature of tarball? Emmanuel_uk Linux - Newbie 3 11-15-2005 01:29 AM
Error: Unable to boot /install/2.6/linux when starting Etch Install BuckRogers01 Debian 4 08-06-2005 06:40 PM
How do I re-install an operatingsystem? Corrupted install. Yast wont load. URGENT.thx CrewXp Suse/Novell 5 05-09-2005 12:07 AM
knoppix liveCD install works great, HD install not so good stephanie_k Linux - Newbie 3 05-10-2004 09:41 AM


All times are GMT -5. The time now is 07:45 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration