简体   繁体   English

在Centos上编译和安装Mono - 无法通过'make'

[英]Compile & Install Mono on Centos - Can't get past 'make'

The basic instructions for installing Mono are: 安装Mono的基本说明是:

tar xzvf mono-X.XX.tar.gz; tar xzvf mono-X.XX.tar.gz; cd mono-X.XX ./configure --prefix=/usr/local; cd mono-X.XX ./configure --prefix = / usr / local; make; 使; make install make install

So I've downloaded the latest version from http://download.mono-project.com/sources/mono/ and extracted it (but being that is a bz2, used the j option for tar). 所以我从http://download.mono-project.com/sources/mono/下载了最新版本并将其解压缩(但是这是一个bz2,使用了tar的j选项)。

The configure seems to work OK. 配置似乎工作正常。 When I run make, it plugs along for a good 40 minutes or so before this: 当我运行make时,它会在此之前插入大约40分钟左右:

make[5]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
make[6]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
make[6]: gmcs: Command not found
make[6]: *** [build/deps/basic-profile-check.exe] Error 127
make[6]: Leaving directory `/usr/local/src/mono-2.11.2/mcs'
make[6]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
*** The compiler 'gmcs' doesn't appear to be usable.
*** Trying the 'monolite' directory.
make[7]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
make[8]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
Corlib not in sync with this runtime: expected corlib version 102, found 100.
Loaded from: /usr/local/src/mono-2.11.2/mcs/class/lib/monolite/mscorlib.dll
Download a newer corlib or a newer runtime at http://www.go-mono.com/daily.
make[8]: *** [build/deps/basic-profile-check.exe] Error 1
make[8]: Leaving directory `/usr/local/src/mono-2.11.2/mcs'
make[8]: Entering directory `/usr/local/src/mono-2.11.2/mcs'
*** The contents of your 'monolite' directory may be out-of-date
*** You may want to try 'make get-monolite-latest'
make[8]: *** [do-profile-check-monolite] Error 1
make[8]: Leaving directory `/usr/local/src/mono-2.11.2/mcs'
make[7]: *** [do-profile-check] Error 2

A few lines later it exits. 几行后退出。

I'm at wits end. 我的智慧结束了。 Endless Googles haven't really got me anywhere except a few people saying that this happens when you overwrite dll's with daily builds. 无尽的谷歌并没有真正把我带到任何地方,只有少数人说当你用每日构建覆盖dll时会发生这种情况。

This is a brand new CentOS 6.2 install with PHP, Apache, Mysql, Webmin and now attempting Mono. 这是一个全新的CentOS 6.2安装,包括PHP,Apache,Mysql,Webmin,现在正在尝试使用Mono。 I've downloaded the latest mono version (2.11.2), but the same thing happened with the last version (2.11.1). 我已经下载了最新的单声道版本(2.11.2),但最后一个版本(2.11.1)也发生了同样的事情。

I'm close to giving up and switching to Debian for our web server, maybe this is the way to go? 我接近放弃并切换到我们的Web服务器的Debian,也许这是要走的路?

Any help appreciated. 任何帮助赞赏。 Cheers 干杯

Running: 运行:

make get-monolite-latest

resolved the problem for me (as your error log suggets) 解决了我的问题(作为您的错误日志suggets)

I just installed mono-2.11.3 on Centos 6.3. 我刚在Centos 6.3上安装了mono-2.11.3。 2.11.3 has an updated monolight version of 104. Try getting it from this link https://wrench.mono-project.com/Wrench/ViewLane.aspx?lane_id=4&host_id=14&revision_id=12176 2.11.3有更新的monolight版本104.尝试从此链接获取它https://wrench.mono-project.com/Wrench/ViewLane.aspx?lane_id=4&host_id=14&revision_id=12176

The updated monolight is there too, however the package was broken so I just grabbed the full mono package and installed that no problem. 更新的monolight也在那里,但是包被破坏所以我只是抓住完整的单声道包并安装没问题。

I was having this same problem. 我遇到了同样的问题。 The links in the answer don't work anymore. 答案中的链接不再起作用。

A URL that worked for me is: http://download.mono-project.com/sources/mono/mono-2.11.3.tar.bz2 适合我的网址是: http//download.mono-project.com/sources/mono/mono-2.11.3.tar.bz2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM