Subject: | Tests fail on Snow Leopard |
I recently upgraded to Snow Leopard on OS X and it ate my Perl. I can't
install HTML::Parser 3.62 because I get errors like this:
t/unbroken-text.t .... Can't load
'/Users/ovid/File-HomeDir-0.86/HTML-Parser-3.62/blib/arch/auto/HTML/Parser/Parser.bundle'
for module HTML::Parser:
dlopen(/Users/ovid/File-HomeDir-0.86/HTML-Parser-3.62/blib/arch/auto/HTML/Parser/Parser.bundle,
2): no suitable image found. Did find:
/Users/ovid/File-HomeDir-0.86/HTML-Parser-3.62/blib/arch/auto/HTML/Parser/Parser.bundle:
mach-o, but wrong architecture at
/usr/local/lib/perl5/5.10.1/darwin-2level/DynaLoader.pm line 204.
at t/unbroken-text.t line 2
Compilation failed in require at t/unbroken-text.t line 2.
BEGIN failed--compilation aborted at t/unbroken-text.t line 2.
HTML-Parser-3.62 $ perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
Platform:
osname=darwin, osvers=9.8.0, archname=darwin-2level
uname='darwin curtis-poes-computer-3.local 9.8.0 darwin kernel
version 9.8.0: wed jul 15 16:55:01 pdt 2009;
root:xnu-1228.15.4~1release_i386 i386 '
config_args='-des -Duseshrplib -Dperladmin=ovid@cpan.org
-Dcf_email=david@kineticode.com'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-I/opt/local/include',
optimize='-O3',
cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include
-I/opt/local/include'
ccversion='', gccversion='4.0.1 (Apple Inc. build 5465)',
gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='
-fstack-protector -L/usr/local/lib -L/opt/local/lib'
libpth=/usr/local/lib /opt/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib -L/opt/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_LARGE_FILES USE_PERLIO
Built under darwin
Compiled at Sep 4 2009 10:02:06
%ENV:
PERL5LIB="lib"
@INC:
lib
/usr/local/lib/perl5/5.10.1/darwin-2level
/usr/local/lib/perl5/5.10.1
/usr/local/lib/perl5/site_perl/5.10.1/darwin-2level
/usr/local/lib/perl5/site_perl/5.10.1
Any ideas?
Cheers,
Ovid