【问题标题】:IronPython + Mono error - could not load signatureIronPython + Mono 错误 - 无法加载签名
【发布时间】:2013-03-05 01:27:42
【问题描述】:

尝试从 Mono 运行 IronPython 时,出现以下错误:

wayne@arglefraster ~/Downloads/IronPython-2.7.3 ⚘ mono ipy.exe              19:19:23
Could not load signature of IronPython.Runtime.List:get_Item due to: 
Failed to load language 'IronPython 2.7': Could not load type 'IronPython.Runtime.List' from assembly 'IronPython, Version=2.7.0.40, Culture=neutral, PublicKeyToken=7f709c5b713576e1'.

在这里摆弄所以我找到了MONO_LOG_LEVEL=debug,并得到了这个相关信息

Mono: Assembly Loader probing location: '/usr/lib/System.Numerics.exe'.
Mono: The following assembly referenced from /home/wayne/Downloads/IronPython-2.7.3/IronPython.dll could not be loaded:
     Assembly:   System.Numerics    (assemblyref_index=5)
     Version:    4.0.0.0
     Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/wayne/Downloads/IronPython-2.7.3/).

Mono: Failed to load assembly IronPython[0xddd180]

Mono: Could not load file or assembly 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
Could not load signature of IronPython.Runtime.List:get_Item due to: 
Mono: gc took 520 usecs
Mono: Unloading domain ipy.exe[0x7faebd540cc0], assembly IronPython[0xddd180], ref_count=2

我怎样才能让它工作?

【问题讨论】:

    标签: mono ironpython linux-mint


    【解决方案1】:

    原来 Numerics 库没有安装:

    wayne@arglefraster ~/Downloads/IronPython-2.7.3 ⚘ apt-cache search mono numerics
    libmono-system-numerics4.0-cil - Mono System.Numerics library (for CLI 4.0)
    
    wayne@arglefraster ~/Downloads/IronPython-2.7.3 ⚘ sudo apt-get install libmono-system-numerics4.0-cil  
    

    然后就走了!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多