Re: Moodle Problem with libgd compiled.

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

 



On 09.01.2017 at 04:16, Rodrigo Cunha wrote:

> i make lib-gd with option(./configure) "--with-gd" but not work. I Download
> the lib in website and compile this, but
> 
> my ./configure php displayed a stdout:
> 
> "
> 
> If configure fails try --with-vpx-dir=<DIR>
> 
> If configure fails try --with-jpeg-dir=<DIR>
> 
> configure: error: png.h not found.ls 

Apparently, libpng is not installed.  You can install it with

  apt-get install libpng-dev

> I installing the lib-gd with command
> 
> #apt-get install php5-gd
> 
> but i the new configure setting not work to.I find the lib installing in my
> environment and
> 
> the lib found in path:/usr/lib/x86_64-linux-gnu/.
> 
> I want installing this lib easyli with command apt-get and setting the
> ../configure setting with path for this.
> 
> My configure:
> 
> --with-gd=/usr/lib/x86_64-linux-gnu/
> --with-jpeg-dir=/usr/lib/x86_64-linux-gnu/
> --with-vpx-dir=/usr/lib/x86_64-linux-gnu/

That can't work, because the DIR has to contain the library as well as
the headers.  Try

  --with-gd=/usr

You don't need the other config options (--with-jpeg-dir,
--with-vpx-dir) if you're building against an external libgd, by the way.

-- 
Christoph M. Becker


-- 
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