perl Makefile.PL LIBS='-L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm' INC='-I/usr/local/include/libxml2' Set up build environment without MacOSX10.4u SDK (will build native binaries) enable native perl UTF8 looking for -lxml2... no looking for -llibxml2... no libxml2 not found Try setting LIBS and INC values on the command line Or get libxml2 from http://xmlsoft.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. #### perl Makefile.PL LIBS='-L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm' INC='-I/usr/local/include/libxml2' DEBUG=1 Set up build environment without MacOSX10.4u SDK (will build native binaries) enable native perl UTF8 looking for -lxml2... perl Makefile.PL 'INC=-I/usr/local/include/libxml2' 'LIBS=-L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm' 'DEFINE= -DHAVE_UTF8' Set up build environment without MacOSX10.4u SDK (will build native binaries) INC = -I/usr/local/include/libxml2 LIBS = -L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm DEFINE = -DHAVE_UTF8 Writing Makefile for Conftest make test 'OTHERLDFLAGS=' cp Conftest.pm blib/lib/Conftest.pm /usr/local/ActivePerl-5.10/bin/perl /usr/local/ActivePerl-5.10/lib/ExtUtils/xsubpp -typemap /usr/local/ActivePerl-5.10/lib/ExtUtils/typemap Conftest.xs > Conftest.xsc && mv Conftest.xsc Conftest.c gcc -c -I/usr/local/include/libxml2 -fno-common -DPERL_DARWIN -DUSE_SITECUSTOMIZE -fno-merge-constants -DPRIVLIB_LAST_IN_INC -fno-strict-aliasing -pipe -O3 -DVERSION=\"1\" -DXS_VERSION=\"1\" "-I/usr/local/ActivePerl-5.10/lib/CORE" -DHAVE_UTF8 Conftest.c Running Mkbootstrap for Conftest () chmod 644 Conftest.bs rm -f blib/arch/auto/Conftest/Conftest.bundle LD_RUN_PATH="/usr/local/lib:/usr/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -Wl,-search_paths_first Conftest.o -o blib/arch/auto/Conftest/Conftest.bundle \ -L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm \ ld: warning: in /usr/local/lib/libiconv.dylib, missing required architecture x86_64 in file chmod 755 blib/arch/auto/Conftest/Conftest.bundle cp Conftest.bs blib/arch/auto/Conftest/Conftest.bs chmod 644 blib/arch/auto/Conftest/Conftest.bs PERL_DL_NONLAZY=1 /usr/local/ActivePerl-5.10/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl 1..1 # Running under perl version 5.010000 for darwin # Current time local: Wed Jan 26 19:57:39 2011 # Current time GMT: Thu Jan 27 03:57:39 2011 # Using Test.pm version 1.25 Can't load 'blib/arch/auto/Conftest/Conftest.bundle' for module Conftest: dlopen(blib/arch/auto/Conftest/Conftest.bundle, 2): no suitable image found. Did find: blib/arch/auto/Conftest/Conftest.bundle: mach-o, but wrong architecture at /usr/local/ActivePerl-5.10/lib/DynaLoader.pm line 206. at test.pl line 2 Compilation failed in require at test.pl line 2. BEGIN failed--compilation aborted at test.pl line 2. not ok 1 # Failed test 1 in test.pl at line 1 # test.pl line 1 is: use Test; BEGIN { plan tests => 1; } END { ok($loaded) } make: *** [test_dynamic] Error 2 system call to 'make test 'OTHERLDFLAGS='' failed at Makefile.PL line 470. no looking for -llibxml2... perl Makefile.PL 'INC=-I/usr/local/include/libxml2' 'LIBS=-L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm' 'DEFINE= -DHAVE_UTF8' Set up build environment without MacOSX10.4u SDK (will build native binaries) INC = -I/usr/local/include/libxml2 LIBS = -L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm DEFINE = -DHAVE_UTF8 Writing Makefile for Conftest make test 'OTHERLDFLAGS=' cp Conftest.pm blib/lib/Conftest.pm /usr/local/ActivePerl-5.10/bin/perl /usr/local/ActivePerl-5.10/lib/ExtUtils/xsubpp -typemap /usr/local/ActivePerl-5.10/lib/ExtUtils/typemap Conftest.xs > Conftest.xsc && mv Conftest.xsc Conftest.c gcc -c -I/usr/local/include/libxml2 -fno-common -DPERL_DARWIN -DUSE_SITECUSTOMIZE -fno-merge-constants -DPRIVLIB_LAST_IN_INC -fno-strict-aliasing -pipe -O3 -DVERSION=\"1\" -DXS_VERSION=\"1\" "-I/usr/local/ActivePerl-5.10/lib/CORE" -DHAVE_UTF8 Conftest.c Running Mkbootstrap for Conftest () chmod 644 Conftest.bs rm -f blib/arch/auto/Conftest/Conftest.bundle LD_RUN_PATH="/usr/local/lib:/usr/lib" env MACOSX_DEPLOYMENT_TARGET=10.3 cc -bundle -undefined dynamic_lookup -Wl,-search_paths_first Conftest.o -o blib/arch/auto/Conftest/Conftest.bundle \ -L/usr/local/lib -lxml2 -lz -lpthread -liconv -lm \ ld: warning: in /usr/local/lib/libiconv.dylib, missing required architecture x86_64 in file chmod 755 blib/arch/auto/Conftest/Conftest.bundle cp Conftest.bs blib/arch/auto/Conftest/Conftest.bs chmod 644 blib/arch/auto/Conftest/Conftest.bs PERL_DL_NONLAZY=1 /usr/local/ActivePerl-5.10/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl 1..1 # Running under perl version 5.010000 for darwin # Current time local: Wed Jan 26 19:57:40 2011 # Current time GMT: Thu Jan 27 03:57:40 2011 # Using Test.pm version 1.25 Can't load 'blib/arch/auto/Conftest/Conftest.bundle' for module Conftest: dlopen(blib/arch/auto/Conftest/Conftest.bundle, 2): no suitable image found. Did find: blib/arch/auto/Conftest/Conftest.bundle: mach-o, but wrong architecture at /usr/local/ActivePerl-5.10/lib/DynaLoader.pm line 206. at test.pl line 2 Compilation failed in require at test.pl line 2. BEGIN failed--compilation aborted at test.pl line 2. not ok 1 # Failed test 1 in test.pl at line 1 # test.pl line 1 is: use Test; BEGIN { plan tests => 1; } END { ok($loaded) } make: *** [test_dynamic] Error 2 system call to 'make test 'OTHERLDFLAGS='' failed at Makefile.PL line 470. no libxml2 not found Try setting LIBS and INC values on the command line Or get libxml2 from http://xmlsoft.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are.