Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gd jpeg problem

Status
Not open for further replies.

Torsten72

Programmer
Nov 30, 2006
9
DE
Hi

i compiled php5.1.5 with

--with-jpeg-dir=/usr

cjepeg is here:
/usr/bin/cjpeg
/usr/share/man/man1/cjpeg.1.gz

but in my php.ini und gd there ist no jpeg support

Has anybody an idea

Thanks Torsten
 
PHP's GD image functions doesn't use cjpeg. It uses the libraries from the jpeg-6b tarball.

As I recall, I downloaded jpeg-6b, installed it, then had to copy the .h files from the tarball folder to /usr/local/include for PHP to compile correctly with JPEG support.



Want the best answers? Ask the best questions! TANSTAAFL!
 
jpeg-6b is installed ther is
jpeglib.h in /usr/include

 
The last time I compiled PHP from scratch, I had to make sure all the .h files from the jpeb-6b compile directory were in /usr/include.

Are you getting errors on your compile?



Want the best answers? Ask the best questions! TANSTAAFL!
 
only this ?

configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
configure: warning: lemon versions supported for regeneration of libsqlite parsers: 1.0 (found: none).
configure: warning: Activating XML
 
So it compiles.

But if you run a script that reads:

<?php
phpinfo();
?>

It says under the GD settings that JPEG support is disabled?



Want the best answers? Ask the best questions! TANSTAAFL!
 

i tried --with-jpeg-dir=/usr and
--with-jpeg-dir=/usr/lib
--with-jpeg-dir=/usr/lib64

You might try compiling PHP version 5.2.0.
you think it makes a difference ?

/configure --quiet --prefix=/root/php-5.1.5 --bindir=/usr/bin --datadir=/usr/share/php --sysconfdir=/etc --libdir=/usr/share --includedir=/usr/include --mandir=/usr/share/man --with-_lib=lib64 --with-apxs2=/usr/sbin/apxs2-prefork --enable-cli --disable-debug --with-config-file-path=/etc --enable-safe-mode --with-exec-dir=/usr/lib64/php/bin --enable-sigchild --enable-magic-quotes --with-openssl=/usr --with-openssl-dir=/usr --enable-bcmath --with-bz2 --enable-calendar --enable-ctype --with-curl=/usr/local --enable-dba --enable-exif --enable-ftp --with-gettext --with-gmp --with-mhash --with-iconv --enable-mbstring --with-mcrypt --with-mime-magic --enable-sockets --enable-memory-limit --enable-inline-optimization --enable-mbstring --enable-shmop --enable-wddx --enable-yp --with-libxml --with-regex=php --with-config-file-path=/etc/php5 --with-xsl --with-ttf --with-freetype-dir --with-cpdflib --with-mysql=/usr/lib/mysql --without-mysqli --with-pear --with-imap --with-imap-ssl --with-zlib=/usr --with-gd --with-jpeg-dir=/usr x86_64-suse-linux
 
On what platform are you compiling PHP?

you think it makes a difference ?
I don't know if trying PHP 5.2.0 will make a difference or not. But you're compiling from tarball -- you may as well make use of the latest code. After all, you don't have to wait for some install package.



Want the best answers? Ask the best questions! TANSTAAFL!
 
SuSE Linux 9.3 64 Bit

maybe I should giv it a try with 5.2
but I alway very cautious with becaus now I Have everything running and I dont't want to run in more problem we are just about to go live
 
Sorry, but I don't know what to tell you.

The compiler should either find all the library and .h files it needs to enable JPEG support or it should produce an error and fail to compile.



Want the best answers? Ask the best questions! TANSTAAFL!
 
thanks anyway !!!
yes thats what I think but there are no errors
 
Are you comiling jpeg-6a from source, or are you using some kind of package?

How closely have you examined the output of the configuration and compilation processes? What mention of jpeg-6a have you seen?



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top