我正在尝试从 GitHub 的 Mono 存储库的压缩包中编译 Mono 3.0.2。但是当我进入mcs
文件夹时,编译失败:
if test -w /root/mono/mcs; then :; else chmod -R +w /root/mono/mcs; fi
cd /root/mono/mcs && make --no-print-directory -s NO_DIR_CHECK=1 PROFILES=' net_2_0 net_3_5 net_4_0 net_4_5 ' CC='gcc' all-profiles
Bootstrap compiler: Mono C# compiler version 3.0.3.0
Makefile:43: warning: overriding commands for target 'csproj-local'
../build/executable.make:149: warning: ignoring old commands for target 'csproj-local'
Makefile:43: warning: overriding commands for target 'csproj-local'
../build/executable.make:149: warning: ignoring old commands for target 'csproj-local'
make[7]: *** No rule to make target '../../external/ikvm/reflect/*.cs', needed by '../class/lib/basic/basic.exe'. Stop.
make[6]: *** [do-all] Error 2
make[5]: *** [all-recursive] Error 1
make[4]: *** [profile-do--basic--all] Error 2
make[3]: *** [profiles-do--all] Error 2
make[2]: *** [all-local] Error 2
make[2]: Leaving directory '/root/mono/runtime'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/mono'
make: *** [all] Error 2
我已经尝试通过 do 来安装 monolitemake get-monolite-latest
并且已经尝试安装 2.x 版本然后编译。这些解决方案都没有奏效。我对 3.0.2 版本的兴趣在于新的 Razor 模板引擎和 MVC 4 框架,但是,如果无法为 CentOS 6 编译/安装或二进制包,我会很感激具有以前版本的存储库。