English 中文(简体)
安装问题 宏观模型(比较子:Name prereq)
原标题:Problems installing Moose on Mac (compile Sub::Name prereq)

I m试图在我的Mabook Pro上安装Moose(CPAN模块)。 该公司发现依赖Sub-Name,并在试图安装时收到以下错误信息。 关于我如何解决这一问题的想法?

  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.

+++ 增 编

I tried the suggestion to use the command sudo port install p5-moose

安装报告取得了成功,但“使用Moose”的档案显示:

"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.

我很想知道,当我从我的旧机器(前电话)移至这台机器时,如果双筒移动,我现在需要重新编造。 但是,如果是,我如何这样做?

问题回答

邮袋,你不应复制一台从一台机器安装到另一台机器。 启用新安装设施将更好。

我强烈建议从轨道上和从轨道上删除你的港口目录(/opt/ local)。 您可以收到一份现有包裹清单,其中列有<>条码>装填<>条码>,但你可以首先安装你立即需要的主要应用程序,然后在需要时安装其他材料。





相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签