PDA

View Full Version : Anyone know about GD 2.0? (Still having problems)


Noel 4 DMB
07-27-2003, 02:36 PM
Hello,

This questions is about Velocd's photo gallery:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=49565

This hack seems to be great, but im having a small problem here that I cant seem to fix. To view for yourself, register at www.amidreaming.org/dreamers and try to upload a photo:

Fatal error: imagecreatetruecolor(): requires GD 2.0 or later in
/home/virtual/site1/fst/var/www/html/dreamers/gdresize.php on line 22

I just downloaded the latest GD, and uploaded the files to the /etc/gd directory. I ran the commands in the install file and everything seemed to work fine. There weren't any errors and each command line (configure, make, make install) each apparently did what they were supposed to. But when i went back to try out the hack, the uploading didn't work.

Right now, everything but the uploading of the photo works. Do you guys have any idea what ive done wrong? Should I install GD into another directory? *clueless*

filburt1
07-27-2003, 03:00 PM
Did you disable the previous GD library?
edit: you also need to recompile PHP every time you install a module when PHP is on *Nix.

Noel 4 DMB
07-27-2003, 03:01 PM
Today at 05:00 PM filburt1 said this in Post #2 (https://vborg.vbsupport.ru/showthread.php?postid=421012#post421012)
Did you disable the previous GD library?
edit: you also need to recompile PHP every time you install a module when PHP is on *Nix.


Could you give me a brief rundown of how to do that? I am very technical illiterate :( I am a designer :(

NTLDR
07-27-2003, 04:57 PM
Upload a file with:

<?php

phpinfo();

?>

In it and search for GD, that will tell you what version you have, if any. If you have PHP 4.3.0 or above it comes with GD, see PHP.net for install instructions and make sure you use --with-gd in the ./configure step.

Noel 4 DMB
07-27-2003, 06:34 PM
Today at 06:57 PM NTLDR said this in Post #4 (https://vborg.vbsupport.ru/showthread.php?postid=421026#post421026)
Upload a file with:

<?php

phpinfo();

?>

In it and search for GD, that will tell you what version you have, if any. If you have PHP 4.3.0 or above it comes with GD, see PHP.net for install instructions and make sure you use --with-gd in the ./configure step.


Thanks, I just installed the latest PHP. However, I went into the php.ini file and noticed that it calls for gd.so. When I went into the directory that it points to, it wasnt there. So i did an SLOCATE on gd.so, and all that exists is libgd.so. Should I edit the php.ini to point to libgd.so and copy that file into the right directory?

Im really lost lol

Velocd
07-27-2003, 07:50 PM
I've only configued GD2 on Windows platform, so I might be able to help you out there if you are on Windows.

I'm running the latest version of PHP, on my localhost, and these are the steps I took to enable GD2:

In php.ini, find:


;extension=php_gd2.dll


And remove the semicolon at the beginning of the line.

Now find:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\Network\Php\extensions"

And make sure the path points to your PHP 'extensions' folder.

php_gd2.dll should be located in that folder already, if you have PHP 4.3.0 or above.

Hope this info helps some. ;)

Noel 4 DMB
07-27-2003, 08:52 PM
Thanks for taking the time to post that Veloc, but im on a *NIX server.

My main problem is that i can't figure out what file i need to point the GD extension to... I looked around, and there are no gd.so files anywhere on my server, even after ive (config/make/make installed) GD. The only one that even looks like it might be right is a file called libgd.so, but for some reason that doesnt work.

Its so frustrating, because your hack is perfect for my site.

NTLDR
07-27-2003, 08:58 PM
Can you post the top part of that file which says the configure command. Does that have --with-gd or anything smiliar in it?

Noel 4 DMB
07-27-2003, 09:05 PM
NTLDR:

I can show you detailed info if you can contact me at Noel4DMB on AIM. I ran the file you suggested and it still says im using PHP 4.1.1, even thought i untarred the newest PHP and ran the commands. But here's what you requested:

'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--

That's the first line of the commands.

Dean C
07-28-2003, 11:23 AM
*Moved to the appropriate forum* :)

- miSt