Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-21-2003, 01:06 AM   #1
Registered: Apr 2003
Location: San Jose
Distribution: Red Hat 9
Posts: 68

Rep: Reputation: 15
PHP 4.3 Upgrade for Image Libraries

I am trying to resize an image in PHP and got the following:

Warning: imagecreatetruecolor(): requires GD 2.0 or later in /var/www/html/include/imageFunctions.php on line 19
Warning: imagecopyresampled(): requires GD 2.0 or later in /var/www/html/include/imageFunctions.php on line 22

So, I followed the directions for installing GD 2.0

Make sure you have libjpeg and libpng installed
1. Grab GD-2.0.1.
2. tar zxvf gd-2.0.1.tar.gz
3. cd gd-2.0.1
4. Edit the Makefile and change the LIBS line to be:
LIBS=libgd.a -lpng -lz -ljpeg -lfreetype -lm
5. make libgd.a (don't need to do a make install)
6. Now build PHP using these flags:
--enable-gd-native-ttf (for PHP 4.0.6 leave off trailing 'f')

Now, I am on the last step 6 above. Where do I go to compile PHP on a standard RedHat 9 install? If I download PHP 4.3 from the PHP site, what happens to all of these:


I am using mysql. So, do I have to do something to all of the above or will they come with the 4.3 PHP?

Old 05-21-2003, 08:00 AM   #2
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,553

Rep: Reputation: 139Reputation: 139
i guess u best check out the install instructions that come with 4.3, u may want to use some more
--with-sth options
as far as i know the manual and the mysql options dont need to be included cause they are default values. packages like ldap or pgsql dont need to be downloaded separately but should be mentioned in the make.
good luck,

Last edited by j-ray; 05-21-2003 at 08:02 AM.


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
GD image streams and PHP TylerD75 Programming 2 11-14-2005 05:04 PM
Image sizes in PHP Napalm Llama Programming 7 07-15-2005 11:01 AM
php and gd (image functions) devfreak Linux - Software 1 05-11-2005 06:17 PM
Php image optimize script htmlcoder Programming 0 03-19-2005 04:23 AM
The best image manipuliation way in to PHP dr. Agon Programming 0 01-28-2001 08:04 AM > Forums > Linux Forums > Linux - Software

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

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