I have banged my head against this one for a few days but can't get
perl 5.10.1, 2.2.14, mod_perl 2.0.5-dev working on Snow Leopard.
There are some other similar problems you will find for Snow Leopard
through Google, with ruby, python, etc., but none of those have led to
a fix for this problem.

Here are the relevant errors, any advice appreciated:

ph...@pooky ~/dev/svn/sl/trunk/SL-App $ perl bin/sl_app
Starting in DEBUG mode
Starting with command: /Users/phred/dev/sl/trunk/SL-App/bin/httpd -f
/Users/phred/dev/sl/trunk/SL-App/conf/httpd_app.conf -k start
httpd: Syntax error on line 32 of
/Users/phred/dev/sl/trunk/SL-App/conf/httpd_app.conf: Cannot load
/Users/phred/dev/sl/httpd2/modules/mod_perl.so into server:
dlopen(/Users/phred/dev/sl/httpd2/modules/mod_perl.so, 10): no
suitable image found.  Did find:
        /Users/phred/dev/sl/httpd2/modules/mod_perl.so: mach-o, but
wrong architecture

ph...@pooky ~/dev/svn/sl/trunk/SL-App $ file ~/dev/sl/httpd2/bin/httpd
/Users/phred/dev/sl/httpd2/bin/httpd: Mach-O 64-bit executable x86_64

ph...@pooky ~/dev/svn/sl/trunk/SL-App $ file ~/dev/perl/bin/perl
/Users/phred/dev/perl/bin/perl: Mach-O 64-bit executable x86_64

ph...@pooky ~/dev/svn/sl/trunk/SL-App $ file
~/dev/sl/httpd2/modules/mod_perl.so
/Users/phred/dev/sl/httpd2/modules/mod_perl.so: Mach-O 64-bit bundle x86_64

Summary of my perl5 (revision 5 version 10 subversion 1) configuration:

  Platform:
    osname=darwin, osvers=10.0.0, archname=darwin-2level
    uname='darwin pooky.redhotpenguin.com 10.0.0 darwin kernel version
10.0.0: fri jul 31 22:47:34 pdt 2009; root:xnu-1456.1.25~1release_i386
i386 i386 '
    config_args='-Dprefix=/Users/phred/dev/perl-5.10.1'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, 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',
    optimize='-O3',
    cppflags='-no-cpp-precomp -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -fstack-protector
-I/usr/local/include'
    ccversion='', gccversion='4.2.1 (Apple Inc. build 5646)', gccosandvers=''
    intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
    ivtype='long', ivsize=8, 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'
    libpth=/usr/local/lib /usr/lib
    libs=-ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup
-L/usr/local/lib -fstack-protector'


Characteristics of this binary (from libperl):
  Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP USE_64_BIT_ALL
                        USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
  Built under darwin
  Compiled at Nov 16 2009 11:36:00
  @INC:
    /Users/phred/dev/perl-5.10.1/lib/5.10.1/darwin-2level
    /Users/phred/dev/perl-5.10.1/lib/5.10.1
    /Users/phred/dev/perl-5.10.1/lib/site_perl/5.10.1/darwin-2level
    /Users/phred/dev/perl-5.10.1/lib/site_perl/5.10.1
    .

Reply via email to