在使用mkbundle工具在Mono上使用新的交叉编译/链接特性时,我遇到了一些问题。我在Intel x86环境中使用LinuxMint14.04 32位,我想使用mkbundle为64位平台创建一个静态二进制文件。作为参考,我使用Mono,版本4.6.2
mc@Carles-nix ~ $ mono --version
Mono JIT compiler version 4.6.2 (Stable 4.6.2.16/ac9e222 Tue Jan 3 11:57:29 UTC 2017)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: x86
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: sgen根据文档,我首先需要有目标文件,所以我尝试从服务器获取它:
mc@Carles-nix ~ $ mkbundle --fetch-target 4.6.1-linux-libc2.12-amd64 --target-server https://download.mono-project.com/runtimes/raw/
Downloading runtime https://download.mono-project.com/runtimes/raw/4.6.1-linux-libc2.12-amd64 to /home/mc/.mono/targets/4.6.1-linux-libc2.12-amd64/mono
Failure to download the specified runtime from https://download.mono-project.com/runtimes/raw/4.6.1-linux-libc2.12-amd64
mc@Carles-nix ~ $ 但是,您可以注意到,无论我试图下载的文件是什么,我总是会得到相同的错误。
我注意到我的版本(4.6.2)没有文件,所以我不确定这是否是问题的根源。
有人能告诉我发生了什么事吗?
先谢谢你。
发布于 2017-02-16 15:01:06
万一有人需要回答这个问题:我已经联系了Mono项目的人员,他们的服务器似乎有问题,所以他们建议我使用另一台服务器:
$ mkbundle --fetch-target 4.6.1-linux-libc2.12-amd64 --target-server https://mono-project.azureedge.net/runtimes/raw/发布于 2017-05-30 08:00:38
对于我来说,我需要添加.zip来下载目标:
mkbundle --fetch-target mono-4.8.0-ubuntu-16.04-x86.zip以及添加.zip的交叉选项。
https://stackoverflow.com/questions/42230154
复制相似问题