redfieldp has asked for the wisdom of the Perl Monks concerning the following question:

I am trying to install the MongoDB module using cpanm on Mac OS 10.6.8. However, as it tries to fulfill dependencies, it appears to fail on the install of Stash, as follows:

Building and testing Package-Stash-XS-0.25 cp lib/Package/Stash/XS.pm blib/lib/Package/Stash/XS.pm /usr/bin/perl /Library/Perl/Updates/5.10.0/ExtUtils/xsubpp -typemap / +System/Library/Perl/5.10.0/ExtUtils/typemap -typemap typemap XS.xs > + XS.xsc && mv XS.xsc XS.c gcc-4.2 -c -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-common -D +PERL_DARWIN -fno-strict-aliasing -I/usr/local/include -Os -DVERSION +=\"0.25\" -DXS_VERSION=\"0.25\" "-I/System/Library/Perl/5.10.0/darwi +n-thread-multi-2level/CORE" XS.c XS.xs: In function ‘XS_Package__Stash__XS_add_symbol’: XS.xs:534: warning: format ‘%d’ expects type ‘int’, but argument 3 has + type ‘I32’ XS.xs:534: warning: format ‘%d’ expects type ‘int’, but argument 4 has + type ‘I32’ /usr/libexec/gcc/powerpc-apple-darwin10/4.2.1/as: assembler (/usr/bin/ +../libexec/gcc/darwin/ppc/as or /usr/bin/../local/libexec/gcc/darwin/ +ppc/as) for architecture ppc not installed Installed assemblers are: /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64 /usr/bin/../libexec/gcc/darwin/i386/as for architecture i386 XS.xs: In function ‘XS_Package__Stash__XS_add_symbol’: XS.xs:534: warning: format ‘%d’ expects type ‘int’, but argument 3 has + type ‘I32’ XS.xs:534: warning: format ‘%d’ expects type ‘int’, but argument 4 has + type ‘I32’ lipo: can't open input file: /var/tmp//cc8KKzN9.out (No such file or d +irectory) make: *** [XS.o] Error 2 -> FAIL Installing Package::Stash::XS failed. See /Users/pproctor/.cpa +nm/build.log for details. -> FAIL Bailing out the installation for Package-Stash-0.33. Retry wit +h --prompt or --force. -> FAIL Bailing out the installation for Class-Load-0.19. Retry with - +-prompt or --force. -> FAIL Bailing out the installation for DateTime-TimeZone-1.46. Retry + with --prompt or --force. -> FAIL Bailing out the installation for DateTime-0.75. Retry with --p +rompt or --force.


This, of course, then causes the downstream installs to fail. Any thoughts?

Thanks!

Replies are listed 'Best First'.
Re: Stash install failing on Mac OS
by cavac (Prior) on Jun 26, 2012 at 15:35 UTC

    Ok, the problem is it also tries to compile for PPC. (I think those are called universal binaries or something like that).

    I don't have access to a Mac (been some years), but you probably can either reconfigure your cpan shell (o conf...) or you can try to bring back universal binary support.

    "You have reached the Monastery. All our helpdesk monks are busy at the moment. Please press "1" to instantly donate 10 currency units for a good cause or press "2" to hang up. Or you can dial "12" to get connected directly to second level support."
Re: Stash install failing on Mac OS
by bitingduck (Deacon) on Jun 27, 2012 at 05:37 UTC

    What's your setup?

    I installed it today to check on two macs running 10.6.8-- one a 32 bit core duo, and the other a 64 bit core 2 duo. Both had Perl 5.14.2 installed via Perlbrew, and I used cpanp to do both installs.

    If you're trying to install to the 5.10.1 that comes with it, it's possible that it has strange pathologies. I had trouble running a module (PDFEverywhere, not in cpan) on the 5.10.1 install on my machine, but it worked fine on 5.10 on other machines, fine under 5.14 on my machine.

    Have you tried following its recommendations and installing with prompts (which might let you skip the ppc problem) or by force, which will install it in spite of the errors. If the errors are only related to things that won't get used on your machine, you might be ok.