编译错误构建Mono。有2.10安装,抱怨我需要2.4?

时间:2012-07-13 18:08:12

标签: mono centos

我正在尝试在CentOS上构建单声道。我有没有正确的yum repo的问题,但是因为已经从Suse rpms手动安装了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'

1 个答案:

答案 0 :(得分:3)

跑步:

make get-monolite-latest

为我解决了这个问题。