繁体   English   中英

Mono 3.4.1在树莓派上无法正确编译

[英]Mono 3.4.1 isn't compiling correctly on the raspberry pi

我正在尝试从树莓派上的GIT(3.4.1)编译最新的Mono源码,我可以进行安装,但是如果我转到/ usr / local / lib / mono,我只会得到“ 2.0 compat-2.0” gac”文件夹,其他框架则没有。

当我尝试运行时:

pi@raspberrypi ~/testeMono $ mcs hello.cs
pi@raspberrypi ~/testeMono $ mono hello.exe 
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/local/lib/mono/4.5/mscorlib.dll' directory.

我有一个初始的单声道安装,我正在执行“ sudo apt-get install mono-complete”(因为我需要单声道来构建单声道),它位于/ usr / lib / mono上

我做了“检查”,这是失败的测试

420 test(s) passed. 6 test(s) did not pass.

Failed tests:


block_guard_restore_aligment_on_exit.exe
bug-10127.exe
finally_block_ending_in_dead_bb.exe
pinvoke2.exe
pinvoke3.exe
winx64structs.exe
make[5]: *** [runtest] Error 1
make[5]: Leaving directory `/home/pi/mono/mono/tests'
make[4]: *** [testjit] Error 2
make[4]: Leaving directory `/home/pi/mono/mono/tests'
make[3]: *** [check-am] Error 2
make[3]: Leaving directory `/home/pi/mono/mono/tests'
make[2]: *** [check-recursive] Error 1
make[2]: Leaving directory `/home/pi/mono/mono/tests'
make[1]: *** [check-recursive] Error 1
make[1]: Leaving directory `/home/pi/mono/mono'
make: *** [check-recursive] Error 1

我们欢迎任何尝试调试问题的帮助,因为我不知道应该看哪里。

我将添加这些问题以进行评论,但信誉不够。

  • ./autogen.sh最后的输出是什么? 查看库部分。 本节中是否有.NET 4.0和.NET 4.5“是”? 如果它们为“否”,请尝试运行./autogen.sh --with-profile4=yes --prefix=your_prefix

     Libraries: .NET 2.0/3.5: yes .NET 4.0: yes .NET 4.5: yes 
  • 当系统单声道位于/ usr时,为什么选择在/ usr / local中安装? 您将在不同目录中有两个Mono安装。 当您要使用并行Mono环境时,这很有用,但是据我了解,您只想将Mono更新为最新版本。 在这种情况下,我使用--prefix=/usr来避免在PATH中查找库的问题。

  • 这些失败的测试意味着某些Mono功能(与PInvoke相关)在您的平台上无法正常运行,但通常Mono可以按预期运行(因为所有其他测试均已通过)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM