Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Configuring php 5

289 views

Published on

Published in: Technology
  • Be the first to comment

  • Be the first to like this

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.

×