checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
Ocurre que falta el compilador de c++
apt-get install g++
Y solucionado.
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
apt-get install g++
$ ./configure --help
...
--with-gd[=DIR] Include GD support where DIR is GD install prefix.
If DIR is not set, the bundled GD library will be used
...
# ldd /usr/lib/libgd.so
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x40054000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x40063000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x40082000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x400ef000)
libz.so.1 => /usr/lib/libz.so.1 (0x40114000)
libm.so.6 => /lib/tls/libm.so.6 (0x40126000)
libc.so.6 => /lib/tls/libc.so.6 (0x40148000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
$ ./configure --with-gd=/usr --with-zlib --with-jpeg<?php
var_dump(gd_info());
?>
array(11) {
["GD Version"]=> string(13) "2.0 or higher"
["FreeType Support"]=> bool(false)
["T1Lib Support"]=> bool(false)
["GIF Read Support"]=> bool(true)
["GIF Create Support"]=> bool(true)
["JPG Support"]=> bool(true)
["PNG Support"]=> bool(true)
["WBMP Support"]=> bool(true)
["XPM Support"]=> bool(false)
["XBM Support"]=> bool(false)
["JIS-mapped Japanese Font Support"]=> bool(false)
}