I am trying to install Moose (CPAN module) on my Macbook Pro. It finds a dependency on the Sub-Name, and when it tries to install it, the following error message appears. Any idea on how I can fix this?
XMATH / Sub-Name-0.04.tar.gz
/ usr / bin / make - OK
Running make test
PERL_DL_NONLAZY = 1 / opt / local / bin / perl "-MExtUtils :: Command :: MM" "-e" "test_harness (0, 'blib / lib', 'blib / arch')" t / *. T
t / smoke .... Can't load '/private/var/root/.cpan/build/Sub-Name-0.04-ziHbmm/blib/arch/auto/Sub/Name/Name.bundle' for module Sub: : Name: dlopen (/private/var/root/.cpan/build/Sub-Name-0.04-ziHbmm/blib/arch/auto/Sub/Name/Name.bundle, 2): no suitable image found.
Did find:
/private/var/root/.cpan/build/Sub-Name-0.04-ziHbmm/blib/arch/auto/Sub/Name/Name.bundle: mach-o, but wrong architecture at / opt / local / lib / perl5 /5.8.9/darwin-2level/DynaLoader.pm line 230.
at t / smoke.t line 6
Compilation failed in require at t / smoke.t line 6.
+++ Addition +++
I tried using the sudo port install p5-moose command
The installation reported success, but the file with "Use Moose" in it gives:
'Can't load' /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/Class/C3/XS/XS.bundle 'for module Class :: C3 :: XS: dlopen (/ opt / local / lib / perl5 / vendor_perl / 5.8.9 / darwin-2level / auto / Class / C3 / XS / XS.bundle, 1): no suitable image found. Did find:
/opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/auto/Class/C3/XS/XS.bundle: mach-o, but wrong architecture at /opt/local/lib/perl5/5.8. 9 / darwin-2level / XSLoader.pm line 73.
at /opt/local/lib/perl5/vendor_perl/5.8.9/darwin-2level/Class/C3/XS.pm line 48
Compilation failed in require at (eval 5) line 3.
, (pre-Intel) , , . , ?