View Full Version : New GD 2.0.28 with gif support
PauGasol
08-06-2004, 05:22 AM
HI,
Would be great include this update in the custom script apache of directamin, some clients are requesting this new feature . Anyway i will update manually to this version.
http://www.boutell.com/gd/
PauGasol
08-06-2004, 05:43 AM
OK,
I made it,
Simple download the last version of gd in the customscript directory :
wget http://www.boutell.com/gd/http/gd-2.0.28.tar.gz
Edit the build file and replace the gd version (in two lines) , and ./build php and reconfigure GD.
the phpinfo alredy shows 2.0.23 ? why, i had 2.0.25 and now 2.0.28 but the phpinfo always show this version.
lnguyen
08-06-2004, 09:37 AM
do you need to untar the file, or will the build script do it for you?
And what exactly do you have to configure for GD?
While you are at it, libpng should be updated. They just released an update plugging a buffer overflow problem.
lnguyen
08-06-2004, 10:19 AM
Originally posted by toml
While you are at it, libpng should be updated. They just released an update plugging a buffer overflow problem.
heh, what's the best way for this? heh
The best way is to download the latest libpng, I believe it is 1.2.6RC1 and change the version number for PNG_VER in the build. Make sure that it is a tar.gz file and not a tar.bz2 file, you just bzip2 -d the file the gzip it to get it in the right format. Then just do a build all.
tribal-dolphin
08-07-2004, 01:18 AM
Originally posted by PauGasol
OK,
and ./build php and reconfigure GD.
./build php is'nt necessary !
You can do ./build gd and ./build libpng to update GD and LibPNG.
PauGasol
08-07-2004, 06:45 PM
Originally posted by tribal-dolphin
./build php is'nt necessary !
You can do ./build gd and ./build libpng to update GD and LibPNG.
Yeah, but the phpinfo alredy shown :
"gd
GD Support enabled
GD Version bundled (2.0.23 compatible)
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled "
when i have 2.0.28! and the gif support and more not works, seems to be the custom script not works with this .. any help thanks?
tribal-dolphin
08-08-2004, 01:44 AM
Heve you configure GD ?
PauGasol
08-08-2004, 05:02 AM
Originally posted by tribal-dolphin
Heve you configure GD ?
If you refer manual ./configure and make install yes, the binaries are ok in /usr/local/bin if i put "./gdlib --version" shown 2.0.28, in the /usr/local/lib are the latests lib. The php are compiled againt usr/local/lib but nothing the phpinfo always show : 2.0.23 and the new funtions of gd not works, seeems the 2.0.23 exits.. in the php make i saw compiling one gd in /php/etc/gd ..
Any help? Thanks
interfasys
08-08-2004, 06:18 AM
There's a step that many people, including me, always forget. Don't make fun of me if it's not that, but it happens more that you think.
Did you restart Apache?
PauGasol
08-08-2004, 06:23 AM
Originally posted by interfasys
There's a step that many people, including me, always forget. Don't make fun of me if it's not that, but it happens more that you think.
Did you restart Apache?
Yes, I restart apache always.
Thanks
lnguyen
08-08-2004, 07:47 AM
I haven't done it yet, but has anyone had success yet?
lnguyen
08-10-2004, 12:12 AM
I tried it and sure enough, still says 2.0.23 in the phpinfo....
actually, it just says 2.0.23 compatible... so is that not really mean the current version?
PauGasol
08-10-2004, 04:57 AM
Yes. i still have the same problem that lnguyen , any help please
interfasys
08-10-2004, 05:07 AM
Why don't you try to write a small php script that echoes gd's version?
PauGasol
08-10-2004, 06:07 AM
Originally posted by interfasys
Why don't you try to write a small php script that echoes gd's version?
Why i need that?
ozcorp
08-10-2004, 06:14 AM
As far as I can see it is using the gd lib that is packaged with PHP. rather than the independant gd-2.0.28
if people have a test server try moving the ext/gd directory some where else and see if it still compiles.
lnguyen
08-10-2004, 07:32 AM
Originally posted by interfasys
Why don't you try to write a small php script that echoes gd's version?
I don't exactly know php... could you provide an example?
interfasys
08-10-2004, 09:07 AM
I just had a look. It's not possible to easily retrieve the version. PHP stays vague.
But I noticed that my php_info tells me that I have GIF read/write. Is it the same for you? Was it the case before also?
lnguyen
08-10-2004, 09:14 AM
I just have "GIF Read Support" enabled.. no write is listed w/ GIF
PauGasol
08-10-2004, 09:37 AM
Originally posted by ozcorp
As far as I can see it is using the gd lib that is packaged with PHP. rather than the independant gd-2.0.28
if people have a test server try moving the ext/gd directory some where else and see if it still compiles.
Yeah, I noticed that in the other reply in this same thread. The php seems use his own gd dir to compile it and seems to be 2.0.23, im not sure.. umm its so strange this
jlasman
08-10-2004, 10:41 AM
I haven't added to this thread before because I really don't know much about GD, and becaue I'm not a PHP programmer (we have one, but that's another story).
However I do remember having to get an upgrade to GD done for a Plesk server for a client a few years ago, and as I recall, yes, the GD used by PHP is the GD installed with PHP; it has nothing to do with any other GD installation.
Jeff
lnguyen
08-12-2004, 08:41 AM
so, anyone know when the gd for php will be updated?
interfasys
08-19-2004, 02:39 PM
PHP 4.3.9 is around the corner and the official statement is to use the bundled version which usually offers a bit more :
http://ch.php.net/gd
lnguyen
08-19-2004, 02:46 PM
ah, I see why our copies of GD weren't working.. we have to define the path of GD if we don't want the bundled version used.
Hopefully the newest update will have the updated GD libraries as well.
markus
11-26-2004, 09:47 PM
Hello,
Current version of DA already comes with 2.0.28
However, the new GD version is now 2.0.33 this is great as it support GIF animation.
I have tried to upgrade to the new version using same procedure described by PauGasol.
I have now the same problem. My phpinfo still shows 2.0.28 :-(
Is there anything left to do?
TIA
tribal-dolphin
11-30-2004, 04:24 AM
Do a ./build clean
and ./build php
when prompted choose yes for building GD
That's all.
markus
12-09-2004, 04:35 AM
Nope. That doesn't help too much. If I do that, I'll get GD 2.0.28, which is the version hardcoded in DA build script.
However, I would like to compile PHP with GD 2.0.33, which is the latest atm.
PauGassol described how to modify DA build to change the GD version numbers to make DA compile PHP with a different version number, so I tried to do it for GD 2.0.33.
Everythings seems to be correct, until I check the phpinfo() output, it still shows GD 2.0.28 :confused: (please note this is the same problem he reported, but with different version numbers)
Where's the problem?
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.