使用YUM在Centos 5.5上安装Mono [英] Install Mono on Centos 5.5 using YUM
问题描述
如何在 Mono 2.6.7运行时href =http://en.wikipedia.org/wiki/CentOS =nofollow noreferrer> CentOS 5.5使用 YUM ?
How do I install the Mono 2.6.7 runtime on CentOS 5.5 using YUM?
我知道如何从源码构建Mono。但是,根据 Mono Tools入门页面可以直接安装二进制文件。我希望安装二进制文件,以避免在具有很少磁盘空间的服务器上安装所有开发先决条件。
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.
我应该添加一个新的仓库描述为YUM?我试过这样做,但我一定是做错了,因为yum列表单核仍然说旧版本(1.2.4-2.el5.centos)。
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).
而且,为什么.rpm在发布服务器上被称为mono-addon-?这有点混乱。听起来像.rpm是Mono的附加组件。我想他们的意思是他们是服务器(?)的附加。
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(?).
推荐答案
/ p>
创建新的存储库配置文件
I figured it out.
cd /etc/yum.repos.d
vi mono.repo
将以下行添加到文件
Add the following lines to the file
[Mono]
name=Mono Stack (RHEL_5)
type=rpm-md
baseurl=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/
gpgcheck=1
gpgkey=http://ftp.novell.com/pub/mono/download-stable/RHEL_5/repodata/repomd.xml.key
enabled=1
更新YUM缓存安全的一面
Update the YUM cache to be on the safe side
yum clean all
安装Mono服务器堆栈
Install the Mono server stack
yum install monotools-addon-server
已安装的二进制文件将以/ opt / novell / mono / bin结尾。
The installed binaries will end up in "/opt/novell/mono/bin".
您应该发出以下命令来设置您的shell环境,以便它找到Mono,mcs和其他Mono工具
source /opt/novell/mono/bin/mono-addon-environment.sh
验证版本
Verify the version
mono --version
Mono JIT compiler version 2.6.7 (tarball Mon Jul 19 18:28:58 UTC 2010)
Copyright (C) 2002-2010 Novell, Inc and Contributors. www.mono-project.com
TLS: __thread
GC: Included Boehm (with typed GC and Parallel Mark)
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
如果您希望Mono环境是永久的可以发出以下命令。
cp /opt/novell/mono/bin/mono-addon-environment.sh /etc/profile.d
Happy Mono'ing !!!
这篇关于使用YUM在Centos 5.5上安装Mono的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!