LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 05-21-2003, 12:06 AM   #1
SForsgren
Member
 
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:
--with-gd=/home/<you>/gd-2.0.1
--with-freetype-dir=/usr
--enable-gd-native-ttf (for PHP 4.0.6 leave off trailing 'f')
--enable-gd-imgstrttf
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-zlib

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:

php-ldap-4.2.2-17
php-mysql-4.2.2-17
php-4.2.2-17
php-manual-4.2.2-17
php-devel-4.2.2-17
php-pgsql-4.2.2-17
php-odbc-4.2.2-17
php-snmp-4.2.2-17
php-imap-4.2.2-17

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?

Thanks
 
Old 05-21-2003, 07:00 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,548

Rep: Reputation: 136Reputation: 136
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,
jens

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration