You are here: Re: how to compile PHP with GD support? « PHP Programming Language « IT news, forums, messages
Re: how to compile PHP with GD support?

Posted by Mike Willbanks on 11/11/65 11:17

Encapsulin,
> checking for the location of libpng... /usr/local/src/libpng-1.2.8/
> If configure fails try --with-jpeg-dir=<DIR>
> configure: error: libpng.(a|so) not found.
>
> why libpng.(a|so) not found ?
>
> # ls -l /usr/local/src/libpng-1.2.8/libpng.a
> -rw-r--r-- 1 root wheel 160448 May 31 12:48
> /usr/local/src/libpng-1.2.8/libpng.a
>
> What is my mistake? Where to read about correct way for installing php
> + gd + libjpeg + libpng ?

You may wish to check the PHP manual:
http://us3.php.net/manual/en/ref.image.php

If it doesn't find libpng, libjpeg or libxpm it can fail.
You may wish to specify the directory...
--with-jpeg-dir=DIR --with-png-dir=DIR --with-xpm-dir=DIR

Also note that libpng requires the zlib library :) so you may need to
add --with-zlib-dir=DIR

Hope that helps.

Mike

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация