Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.

Configuring php 5

291 visualizaciones

Publicado el

Publicado en: Tecnología
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

Configuring php 5

  1. 1. Configuring PHP 5.2.3 with GD support for Mac OS X
  2. 2. pbmods Configuring PHP 5.2.3 with GD support for Mac OS XExpert2.5K+PHP 5.2.3 does not seem to want to configure with GD support on Mac OS X for some P:reason. When configuring, you may notice this error:4,821 Expand|Select|Wrap|Line Numbers 1. configure: error: GD build test failed. Please check the con fig.log for details. Checking config.log yields the following: Expand|Select|Wrap|Line Numbers 1. configure:42434: gcc -o conftest -g -O2 -no-cpp-precomp - L/usr/local/lib -L/usr/local/lib conftest.c -L -lfreetype -lpng -lz -ljpeg -lm -lxml2 -lz -liconv -lm -lxml2 -lz - liconv -lm 1>&5 2. /usr/bin/ld: -L: directory name missing 3. collect2: ld returned 1 exit status 4. Notice the -L in the string above. The easy solution is to remove that errant -L, since it doesnt do anything (except crash the configure script, that is). But where is it? Looking on line 42434 of the configure script doesnt look too helpful.... Expand|Select|Wrap|Line Numbers 1. if { (eval echo configure:42434: "$ac_link") 1>&5; (eval $ ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conft est; exit) 2>/dev/null 2. then 3. Looks like the problem is in $ac_link, which is defined on line 2152: Expand|Select|Wrap|Line Numbers 1. ac_link=${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5 2. Since the -L showed up after conftest.c in the ld arguments, we know the problem must be in $LIBS.

×