LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 05-13-2001, 05:08 PM   #1
MusicmanAN
LQ Newbie
 
Registered: May 2001
Posts: 1

Rep: Reputation: 0

I've just pulled an all-nighter and have thus been working for the past 20 hours on this seemingly simple problem. Basically, I have been trying upgrade an existing installation of Apache and PHP to the latest. In order to get mysql and gd (with jpeg) support into PHP I did the following:

Supporting software
-----------------------------
Added /usr/local/lib to /etc/ld.so.conf
Ran /sbin/ldconfig
Downloaded, untarred and built latest release version of libpng. http://www.libpng.org/pub/png/
Downloaded, untarred and built latest release version of zlib. http://www.info-zip.org/pub/infozip/zlib/
Used ./configure --enable-shared
Downloaded, untarred and built latest release version of JPEG library. http://www.ijg.org/
Used ./configure --enable-shared
Downloaded, untarred and built latest release version of gd (1.8.4). http://www.boutell.com/gd/
Altered Makefile to add jpeg support
Verified jpeg support:
> nm libgd.a | grep GD_JPEG_VERSION
00000004 r GD_JPEG_VERSION

PHP and Apache
-----------------------------
Downloaded and untarred latest release version of apache (1.3.19). http://www.apache.org/
Downloaded and untarred latest release version of php (4.0.5). http://www.php.net/
In PHP directory:
./configure --with-gd=/usr/local --with-jpeg-dir=/usr/local --with-apache=../apache_1.3.19/ --with-mysql --enable-track-vars
make
make install
In Apache directory:
./configure --enable-shared=max --enable-module=most --with-layout=Apache --activate-module=src/modules/php4/libphp4.a --activate-module=src/modules/standard/mod_so.o
make
make install
Deleted old /usr/sbin/httpd, replaced with hard link to /usr/local/apache/bin/httpd
------------

Whew. Now apache works fine and mysql works fine, but gd does not have JPEG support as witnessed through the missing line in phpinfo(). I am spent, I cannot think of any reason why this shouldn't work, and I can't find anything on the web to help me. Someone please help, I will be eternally grateful.
 
  


Reply



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
Compiling php with oracle support fintan Linux - Software 1 12-31-2006 12:34 PM
JPEG Support Ben.d Linux - General 3 03-10-2004 07:43 AM
no jpeg support arrruken Linux - Software 1 03-03-2004 01:11 AM
Problems compiling php with imap, ssl... support tveiga Linux - Software 1 01-16-2004 09:06 PM
How to build jpeg support into PHP Larry James Programming 4 10-14-2000 06:10 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:40 PM.

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
Open Source Consulting | Domain Registration