我正在尝试在 CentOS 上构建 mono。我遇到了问题,因为没有合适的 yum 存储库,但后来我从 Suse rpm 手动安装了 rpm。工作正常。请参阅下面的版本输出:
root@localhost mcs]# mono --version
Mono JIT compiler version 2.11.2 (tarball Thu Jul 12 03:04:31 EDT 2012)
Copyright (C) 2002-2012 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: Included Boehm (with typed GC and Parallel Mark)
[root@localhost mcs]# gmcs --version
Mono C# compiler version 2.10.6.0
[root@localhost mcs]# mcs --version
Mono C# compiler version 2.10.6.0
当我尝试编译最新的单声道时,我得到以下输出...嗯?它看到我有它和版本,然后提示它不是 2.4+..任何人都可以帮我解决这个问题吗?
Bootstrap compiler: Mono C# compiler version 2.10.6.0
make[5]: *** [build/deps/basic-profile-check.out] Error 1
make[5]: Leaving directory `/root/mono2/mono/mcs'
*** The compiler 'gmcs' doesn't appear to be usable.
*** You need Mono version 2.4 or better installed to build MCS
*** Read INSTALL.txt for information on how to bootstrap a Mono installation.
make[4]: *** [do-profile-check] Error 1
make[4]: Leaving directory `/root/mono2/mono/mcs'
最佳答案
运行:
make get-monolite-latest
解决了我的问题。
关于mono - 构建 Mono 时编译错误。已经安装了 2.10,提示我需要 2.4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11475954/