Google Answers Logo
View Question
 
Q: Install GD library 2 ( Answered 5 out of 5 stars,   1 Comment )
Question  
Subject: Install GD library 2
Category: Computers > Programming
Asked by: mackan-ga
List Price: $15.00
Posted: 24 Feb 2003 04:50 PST
Expires: 26 Mar 2003 04:50 PST
Question ID: 166321
My dedicated apache server has GD lib 1.6 installed and I need 2.0 or
later, I am looking for someone who has done the upgrade before and
can do it on my server.

What kind of server access do you need to do this
(shell/telnet/ftp...?)

($15 is NOT for ansewring the question - it's for actually installing
it.)
Thanks!

Request for Question Clarification by studboy-ga on 24 Feb 2003 05:40 PST
Hi,

I can do it--I'd need telnet/shell access.  But due to security
reasons (if you post your username and password here the whole world
can see it), I think it's better if I walk you through it using the
"question clarification" section of this question.  If the
installation works at the end, I will post a "formal" answer (to get
paid).  How about that?

Request for Question Clarification by studboy-ga on 24 Feb 2003 05:49 PST
BTW, this is *root* shell (username and password)...  I don't think
you want the whole world to know.

Clarification of Question by mackan-ga on 24 Feb 2003 08:59 PST
Yes, we can do it that way, I have just contacted my host to get
telnet access, Ill get back to you after that.

Thanks!
Markus

Clarification of Question by mackan-ga on 24 Feb 2003 21:54 PST
Hello again,

Would SSH access be sufficient?

Request for Question Clarification by studboy-ga on 25 Feb 2003 01:20 PST
Hi,

Yes, ssh along with sftp should be sufficient.  After you ssh into
your server, check to see if you have the wget or lynx available:

wget http://www.boutell.com/gd/http/gd-2.0.11.tar.gz

or

lynx http://www.boutell.com/gd/http/gd-2.0.11.tar.gz
and then hit D to download.

If not, download it to your local drive first and
then sftp it in.

After you get that .tar.gz to your server, do a
tar -pxvzf gd-2.0.11.tar.gz

to unpack it.  Then

cd gd-2.0.11

Let me know when you get there.  I'll tell you the next steps.

Clarification of Question by mackan-ga on 25 Feb 2003 02:13 PST
Hi,

Yes gd-2.0.11 is unpacked in /usr/src/gd-2.0.11
This was done by me webhost earlier, and I have found it there now.

I have no clue if it is wget or lynx (is that important)


What do I do now?

Clarification of Question by mackan-ga on 25 Feb 2003 02:23 PST
Just a thought: maybe /usr/src/gd-2.0.11  is the wrong directory and
that's why it won't find it, I read in the help file:

"UPGRADING USERS: READ THIS FIRST! gd 2.0.5 and above install by
default to /usr/local/lib and /usr/local/include."

My ICQ: 163937607

Request for Question Clarification by studboy-ga on 25 Feb 2003 09:02 PST
Hi,

Can you do a quick check in /usr/bin and /usr/lib
to see if you already have gd-2.0.11 compiled already?
It's possible your webhost has already done this
for you, but due to stability/compatibility issues
they decide to keep an old versionfor now.  Email/cechk
with a support person to see what they say, then let me
know.

Thanks

Request for Question Clarification by studboy-ga on 25 Feb 2003 09:03 PST
Also, do a gdlib-config to see if you can find anything...

Request for Question Clarification by studboy-ga on 25 Feb 2003 09:05 PST
BTW, you can point to it even if it's not installed in the default path.

Clarification of Question by mackan-ga on 25 Feb 2003 10:16 PST
I went to usr/bin and found: (for example)
gd2copypal, gd2topng, gdlib-config,

so I wrote gdlib-config and got this:

bash-2.05a$ gdlib-config
Print information on GD library's version, configuration, and use.
Usage: gdlib-config [options]
Options:
        --libdir          # directory where GD library is installed
        --includedir      # directory where GD library headers are
installed
        --version         # complete GD library version string
        --majorversion    # GD library major version number
        --minorversion    # GD library minor version number
        --revision        # GD library revision version number
        --ldflags         # options required for linking against GD
library
        --libs            # libs required for linking against GD
library
        --cflags          # options required for compiling GD library
apps
        --includes        # same as --cflags

Does that mean it is installed already?
I know that my webhost has tried to install it but they can't compile
it successfully.


This file on my server tells me that the GD version is 1.6 or higher:

http://66.230.213.27/phpinfo.php

Request for Question Clarification by studboy-ga on 25 Feb 2003 11:25 PST
Hi,

Can you do a 

gdlib-config --version

?

It's possible that GD 2.0+ does not compile on your machine,
so your webhost gave up on it.

If that's the case, I can walk you through the compile process.
It's worth a try.

Clarification of Question by mackan-ga on 25 Feb 2003 14:35 PST
Doing a gdlib-config --version 
gives: 2.0.11

Request for Question Clarification by studboy-ga on 25 Feb 2003 17:52 PST
OK, so 

1) gd 2.0.11 is already installed on your system.

2) Apache is reporting "1.6 or higher."

3) Your admin is telling you he "never" compiled nor installed gd
2.0.11 :)

My gut feeling is that the PHP on your system is missing a patch--
so your admin probably configures your PHP to point to an older
version
of gd lib/rpm.
Please check with your admin again and point him/her to this page--
or you can do it yourself if he tells you he won't do it:

http://www.boutell.com/gd/phppatch.html

There are seven steps.  You already completed step 1.  You already
have PHP 4.2.3--there's probably already a  PHP 4.2.3 src dir
in your /usr/src area (or wherever you admin puts it).
Ask him whether he has done steps 3-5: download and apply the patch,
before performing step 6: compiling PHP for Apache.  If he has not
done so, see if you can persuade him to do it, or
do it yourself if he says no.

Let me know how it goes.  Thanks!

Request for Question Clarification by studboy-ga on 25 Feb 2003 17:58 PST
Also, I would take an app which requires gd 2.0+ and just try running it--
maybe your admin *already* installed the patch but he "forgot" :)
It's possible.

Clarification of Question by mackan-ga on 25 Feb 2003 23:52 PST
I have asked him if they have done it, if I get a no - I would need
clarification on step six since that requires that I have knowledge
about compiling php which I don't.
I'll let you know my host's reply

Thanks for you help BTW!

Request for Question Clarification by studboy-ga on 27 Feb 2003 08:34 PST
Hi,

Any results from your admin?

Thanks

Clarification of Question by mackan-ga on 27 Feb 2003 09:28 PST
No, no answer yet. Is it easy to install the patch? I would need help
eith step six at least.

Request for Question Clarification by studboy-ga on 28 Feb 2003 03:08 PST
Yes, step 6 is doable.  Supposed your gd stuff is in /usr/local,
you just need to cd to your PHP src dir and do:

./configure --with-gd=/usr/local --with-png-dir=/usr/local
--with-zlib-dir=/usr/local

then:

gmake

and 

gmake install

Give that a try

Request for Question Clarification by studboy-ga on 28 Feb 2003 03:09 PST
Also, have you thought of changing your hosting company?
I got the impression technical support for your hosting is not that great.

Clarification of Question by mackan-ga on 28 Feb 2003 05:01 PST
I didn't even get access to the folders where php is, so I have to
wait for my hosts answer...

Request for Question Clarification by studboy-ga on 05 Mar 2003 14:08 PST
Hi mackan-ga,

Did you abandon your host> :)

Thanks

Clarification of Question by mackan-ga on 10 Mar 2003 08:32 PST
Hi,
Now all of a sudden my host has installed GD2!
But on the downside this broke Zend optimizer
So I still cannot use the software that I wanted too.

Request for Question Clarification by studboy-ga on 10 Mar 2003 16:00 PST
Thanks mackan-ga.  Now looks like your host has a different issue... 
Well, good luck with your host.  Anyway, should I close this question
(ie, answer it)?  Or do you think I don't deserve to get paid? 
Thanks!

Clarification of Question by mackan-ga on 10 Mar 2003 23:01 PST
Hi,

Thanks for all your help, please "answer" the question so you get paid!

Markus
Answer  
Subject: Re: Install GD library 2
Answered By: studboy-ga on 12 Mar 2003 12:30 PST
Rated:5 out of 5 stars
 
Thanks Markus! --for the opportunity to help you with this question. 
Information regarding installation (and PHP patch) of GD 2.0 can be
found at:

http://www.boutell.com/gd/

Sorry to hear that your hosting admin wasn't too supportive...
However, I guess if there's any good things that came out of this is
the fact that your persistent persuasion has resulted in convincing
them to finally install GD 2.0 :)  I hope they resolve the Zend
optimizer problem in the near future!

Best regards,
studboy-ga
mackan-ga rated this answer:5 out of 5 stars
This guy really knows what he is talking about, and very good at
explaining step by step how to solve your question. In my case it had
to do with solving the installationn of a linux server add-on, which I
had never used before but still he could explain to me how to do it. I
would not hesitate to use his knowledge again.

Comments  
Subject: Re: Install GD library 2
From: studboy-ga on 13 Mar 2003 21:47 PST
 
Thanks Markus!  I appreciate the opportunity to help you!

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy