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