我正在尝试从GitHub的Mono存储库中的tarball编译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
我已经尝试通过 make get-monolite-latest
命令来安装 monolite,并尝试安装 2.x 版本并进行编译。但是这些解决方案都没有成功。
我对 3.0.2 版本的兴趣在于新的 Razor 模板引擎和 MVC 4 框架,但是如果在 CentOS 6 上无法编译/安装或二进制包,则希望提供以前版本的软件源。