RE: GD problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is the output from <?php var_dump(gd_info()); ?>. As far as I can tell,
jpeg support is enabled. It also says it is if I run phpinfo(). Yet is still
doesn't work. 

Anyone know of a way I can test this further. A small script perhaps.

Thanks

array(11) { ["GD Version"]=> string(27) "bundled (2.0.23 compatible)"
["FreeType Support"]=> bool(false) ["T1Lib Support"]=> bool(false) ["GIF
Read Support"]=> bool(true) ["GIF Create Support"]=> bool(false) ["JPG
Support"]=> bool(true) ["PNG Support"]=> bool(true) ["WBMP Support"]=>
bool(true) ["XPM Support"]=> bool(false) ["XBM Support"]=> bool(true)
["JIS-mapped Japanese Font Support"]=> bool(false) }  

-----Original Message-----
From: Chris [mailto:dmagick@xxxxxxxxx] 
Sent: June 20, 2006 8:51 PM
To: Beauford
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  GD problems

Beauford wrote:
> After my last email I searched around some more and found the following.
> 
> /Q: gd keeps saying it can't find png or jpeg support. I did install 
> libpng and libjpeg. What am I missing?/
> /A: Be sure to do "make install-headers" for libpng and "make 
> install-lib" for libjpeg, in addition to "make install."/
> 
> This is basically what you were saying, but as I said these header 
> files do not exist on their own (for Slackware anyways) and just by 
> chance I came across the above, but in any event it still doesn't 
> work.  It might be nice though if somewhere in the instructions it 
> says, hey, you might need to do this.
> 
> Then I found this when searching on the jpeg errors I keep getting.
> 
> /This error occures becuase the linker (ld) cannot find the jpeg 
> library./ /You can fix this problem by editing the config.nice file 
> inside the php4/ /directory and adding / /LDFLAGS='-L/path/to/lib' \ / 
> /above the ./configure \ /
> 
> /For example is your libjpeg.so resides inside /usr/local/lib, you'd 
> add/ /-L/usr/local./
> 
> /Once you've edited the file, remove config.cache and run 
> ./config.nice,/ /after that make; make install; should work./
> 
> Since my/// libjpeg.so / is in /usr/lib I put/// LDFLAGS='-L/user' \/ 
> - I still get the same error. If I compile without the jpeg it works 
> like a charm - so I recompiled libjpeg thinking it may have gotten 
> screwed up, but same errors.
> 
> So the question is, why can't it find these files?
> 
> Any ideas on what else I can do. I'm assuming that other people have 
> this working on Slackware, if so, how did they do it? I posted to that 
> forum as well and didn't get one answer.

Please always CC the list - you'll get more (and faster) help.

As David suggested, try adding this:

--with-jpeg-dir=/usr --with-png-dir=/usr

to the php configure command.

If that doesn't work, where is the jpeglib.h file?

Mine is in the /usr/include folder, so I use /usr for the --with-jpeg-dir
parameter.

If that file doesn't exist anywhere on your system, you haven't got the
headers installed for libjpeg.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux