使用 YUM 在 Centos 5.5 上安装 Mono
如何在 Mono 2.6.7 运行时安装http://en.wikipedia.org/wiki/CentOS" rel="nofollow noreferrer">CentOS 5.5 使用 好吃?
我知道如何从源代码构建 Mono。但是,根据页面Getting Started With Mono Tools,它是可以直接安装二进制文件。我更愿意安装二进制文件,以避免在磁盘空间很小的服务器上安装所有开发先决条件。
我应该向 YUM 添加新的存储库描述吗?我尝试这样做,但我一定做错了,因为“yum list mono-core”仍然显示旧版本(1.2.4-2.el5.centos)。
而且,为什么 .rpm 在发布服务器上被称为“mono-addon-”?这有点令人困惑。听起来 .rpm 是 Mono 的附加组件。我猜他们的意思是它们是服务器的“附加组件”(?)。
How do I install the Mono 2.6.7 runtime on CentOS 5.5 using YUM?
I know how to build Mono from the source. However, according to the page Getting Started With Mono Tools it is possible to install the binaries directly. I'd prefer to install the binaries to avoid having to install all the development pre-requisites on a server with little disk space.
Am I supposed to add a new repository description to YUM? I tried doing that, but I must have done it wrong, because "yum list mono-core" still says the old version (1.2.4-2.el5.centos).
And, why are the .rpm's called "mono-addon-" on the release server? It's a bit confusing. It sounds like the .rpm's are an add-on to Mono. I guess they mean they are an "add-on" to the server(?).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想通了。
创建新的存储库配置文件
将以下行添加到文件中
更新 YUM 缓存以确保安全
安装 Mono 服务器堆栈
安装的二进制文件最终将位于“/opt/novell/mono/bin”中。
您应该发出以下命令来设置您的 shell 环境,以便它找到 Mono、mcs 和其他 Mono 工具
验证版本
如果您希望 Mono 环境永久存在,您可以发出遵循命令。
快乐 Mono'ing!!!
I figured it out.
Create a new repository configuration file
Add the following lines to the file
Update the YUM cache to be on the safe side
Install the Mono server stack
The installed binaries will end up in "/opt/novell/mono/bin".
You should issue the following command to set up your shell environment so that it finds Mono, mcs and the other Mono tools
Verify the version
If you want the Mono environment to be permanent you can issue the following command.
Happy Mono'ing!!!
除了octonion的帖子之外,如果,像我一样,您想使用 Apache mod_mono,您需要通过运行以下命令来确保安装正确版本的 mod_mono,并且它将获得正确的版本:
不要只发出
yum install mod_mono
。它可能会从 CentOS extras 存储库安装 mod_mono 1.2 版本,而不是您实际想要的版本。作为参考,当运行不正确的 mod_mono 版本时,我在
/var/log/httpd/error_log
中收到以下错误:如果你像我一样刚接触这个,这是一个愚蠢但很容易犯的错误。
In addition to octonion's post, if, like me, you want to use Apache mod_mono, you need to ensure you install the correct version of mod_mono by running the following, and it will get the right one:
Don't just issue
yum install mod_mono
. It may install mod_mono 1.2 version from the CentOS extras repository and not what you're actually after.As a reference, I was getting the following error in
/var/log/httpd/error_log
when running the incorrect mod_mono version:It is a silly, but easy mistake to make if you new to this like me.