-
Install PHP com gd2
Colegas,
A mais de mês estou tentando instalar o php com supote ao gd2.
Sem o gd eu instalo beleza mais quando eu ativo a opção no configure é onde meus problemas começam. PHP-4.3.10
veja a linha que estou digitando:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-zlib-dir=/usr --with-freetype-dir=/usr --with-xpm-dir=/usr/X11R6
VEJA O ERRO:
checking for GD support... yes
checking for the location of libjpeg... /usr
checking for the location of libpng... /usr
checking for the location of libXpm... /usr/X11R6
checking for FreeType 1.x support... no
checking for FreeType 2... /usr
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for png_write_image in -lpng... (cached) yes
checking for XpmFreeXpmImage in -lXpm... no
configure: error: Problem with libXpm.(a|so) or libX11.(a|so). Please check con
ig.log for more information.
----
sinceramente eu nao quero a opção de xpm pro php.. só quero o gd com jpeg e png mais ele nao vai sem que eu coloque todas as opções acima.. quando eu coloco --disable-xpm ele mostra:
checking for the location of libXpm... no
If configure fails try --with-xpm-dir=<DIR>
configure: error: freetype2 not found!
--
e ai nao vai!!
Alguem teria alguma dica pra me dar????? ja descompactei um arquivo xpm-3.4k-linux que achei na net e copiei os arquivos para os devidos cantos e nada de da certo.
Alguma dica... cancei de apanhar :(
-
Install PHP com gd2
Tenta outro pacote do Gd..eu tb nao consegui, posta ai se rolar contigo
-
Install PHP com gd2
kra
quando vc configurou o gd, como vc fez? ele encontrou no configure os modulos q vc queria compilar?
pq o suporte as libs q vc quer usar no php, tem q estar compilados no seu gd tbm, se nao o php naum vai achar mesmo??
o segredo ae, eh saber se tua gd tah bem configurada
[]'s
-
Install PHP com gd2
Cara,
Ok, vc me atentou para um detalhe.. mas veja:
Quando compilo o gd 2.0.33 no final ele me mostra o seguinte:
./configure --with-png=/usr --with-freetype2=/usr --with-jpeg=/usr --with-xpm=/root/xpm-3.4k-linux
** Configuration summary for gd 2.0.33: (nao sei pq nao ativou o freetype nem o xpm)
Support for PNG library: yes
Support for JPEG library: yes
Support for Freetype 2.x library: no
Support for Fontconfig library: no
Support for Xpm library: no
Support for pthreads: yes
...
ja no php.. executo a seguinte linha.
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-gd=/usr --with-png-dir=/usr --with-jpeg-dir=/usr --with-zlib-dir=/usr --disable-freetype2 --disable-xpm
justamente pra ativar apenas os modulos que foi compilado no gd.. ai me da o segunte erro:
checking for GD support... yes
checking for the location of libjpeg... /usr
checking for the location of libpng... /usr
checking for the location of libXpm... no
checking for FreeType 1.x support... no
checking for FreeType 2... no
checking for T1lib support... no
checking whether to enable truetype string function in GD... no
checking whether to enable JIS-mapped Japanese font support in GD... no
checking for jpeg_read_header in -ljpeg... (cached) yes
checking for png_write_image in -lpng... (cached) yes
If configure fails try --with-xpm-dir=<DIR>
If configure fails try --with-freetype-dir=<DIR>
configure: error: Unable to find gd.h anywhere under /usr
Alguma luz??
-
Install PHP com gd2
desativa o suporte a xp no gd... alias.. tira ele da sintaxe do conifgure soh
e tenta variacoes do path do freetype na hora d compilar o gd... tipow
/usr/lib ou
/usr/lib/freetype2
em algum desses paths ele tem q encontrar o freetype, ele tem q saber onde estah o .h (header) do freetype...
[]'s