惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

GbyAI
GbyAI
Martin Fowler
Martin Fowler
Y
Y Combinator Blog
F
Full Disclosure
Help Net Security
Help Net Security
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Hacker News
The Hacker News
大猫的无限游戏
大猫的无限游戏
T
Threat Research - Cisco Blogs
L
LINUX DO - 热门话题
Know Your Adversary
Know Your Adversary
U
Unit 42
P
Palo Alto Networks Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Apple Machine Learning Research
Apple Machine Learning Research
Spread Privacy
Spread Privacy
T
Tor Project blog
Simon Willison's Weblog
Simon Willison's Weblog
C
Cyber Attacks, Cyber Crime and Cyber Security
Cyberwarzone
Cyberwarzone
MongoDB | Blog
MongoDB | Blog
爱范儿
爱范儿
阮一峰的网络日志
阮一峰的网络日志
雷峰网
雷峰网
N
News and Events Feed by Topic
Microsoft Security Blog
Microsoft Security Blog
人人都是产品经理
人人都是产品经理
C
Check Point Blog
P
Proofpoint News Feed
D
DataBreaches.Net
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
F
Fortinet All Blogs
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
L
LINUX DO - 最新话题
Security Latest
Security Latest
T
Threatpost
博客园 - 【当耐特】
Cloudbric
Cloudbric
P
Privacy International News Feed
博客园 - 聂微东
M
MIT News - Artificial intelligence
S
Security @ Cisco Blogs
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Attack and Defense Labs
Attack and Defense Labs
www.infosecurity-magazine.com
www.infosecurity-magazine.com
S
Secure Thoughts

博客园 - 钟少

关于 MonoDevelop on Linux 单步调试问题的解决 MonoDevelop 4.2.2/Mono 3.4.0 in CentOS 6.5 安装笔记 在ASP.NET MVC 4 on Mono中使用OracleClient in CentOS 6.x的问题记录 在CentOS 6.4 x86_32中使用Rhythmbox听MP3 MonoDevelop 4.0.9 on CentOS 6.3 安装笔记 MemoryMappedFile 在 Mono in Linux 的开发笔记 在OpenSUSE中听歌 ASP.NET MVC 3.0 源码阅读手记(1) Mono on Linux 开发与实践札记(1) 在Windows Mobile中检测应用程序是否运行在模拟器中 数据库连接字符串解析的正则表达式 我的WPF学习札记(1) 我的插件框架·前传 恢复Ico图标文件在资源管理器中的显示 深入剖析 ASP.NET 1.x 中 Forms 身份验证(1) 北大青鸟(深圳中青)培训中心招聘: .NET 讲师 .NET 2.0 中的自定义配置处理 一个三层架构的WinForms程序的完整范例(.NET 1.1/Northwind) IIS6.0服务器架站无法访问解决方案总结(转贴)
Mono on CentOS 6.3 安装笔记
钟少 · 2013-07-09 · via 博客园 - 钟少

在网上找到篇关于yum的文章,写的很详细特此推荐下,在阅读本文之前建议先看看它: 《CentOS yum源的配置与使用》

如果用的是移动光驱,建议不要开启本地的yum 的本地repository库,即不要启用/etc/yum.repos.d/CentOS-Media.repo文件内的配置源。当然,如果您的CentOS不能连接互联网,而必须使用光盘或者移动存储进行更新的话,那就需要启用本地repository源。

下载网易和搜狐的安装源:

# cd /etc/yum.repos.d
# wget http://mirrors.163.com/.help/CentOS-Base-163.repo
# wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo

另外,强烈建议安装EPEL(Extra Packages for Enterprise Linux),这神器可是RedHat/Fedora/CentOS这类Linux中最全的yum源。 安装步骤如下(本例使用的是清华大学的镜像站点下载):

32位X86操作系统:
# rpm -ivh http://mirrors.4.tuna.tsinghua.edu.cn/epel/6/i386/epel-release-6-8.noarch.rpm
64位X86操作系统:
# rpm -ivh http://mirrors.4.tuna.tsinghua.edu.cn/epel/6/x86_64/epel-release-6-8.noarch.rpm

导入数字签名验证文件

# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

epel安装包安装成功之后,就可以在/etc/yum.repos.d目录下看到两个库文件了:epel.repo和epel-testing.repo 默认情况下,epel-testing.repo是没有启用的,从其名字就可以看出它是个测试库,一般不建议正式使用。

最后更新一下yum源的缓存,使刚才下载的各种源立即生效:

# yum makecache

设置了这么多的yum安装源,自然就会涉及到安装源的优先顺序的问题,一般来说,应该优先使用CentOS官方安装源。这时就需要使用到yum-plugin-priorities这个插件了,安装如下:

# yum install yum-plugin-priorities

安装完成后,请手动修改 /etc/yum.repos.d 目录下的各个.repo文件中的优先权重值,其权重值范围为1~99,数字越小权重越高即优先权也越高。

一般的配置是这样的:

[base], [addons], [updates], [extras] … priority=1
[centosplus],[contrib] … priority=2
其他第三的软件源为:priority=n (推荐n>10)

譬如:我的CentOS-Base.repo文件中的base节的配置如下:

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

最后执行:

# yum -y update

Mono 部分

网上说安装Mono之前必须要先安装这些包:

gcc gcc-c++ bison pkgconfig glib2-devel gettext make libpng-devel libjpeg-devel libtiff-devel libexif-devel giflib-devel libX11-devel freetype-devel fontconfig-devel cairo-devel

由于本人在安装CentOS 6.3的时候选择的是Development模式,想必这些包都已经默认安装在内了,但为了安全起见还是使用rpm命令对其一个个做了检测确保已经安装过,检测命令大致如下:

# rpm -qa libexif*

经过一轮检测,发现确实有几个漏网之鱼,遂使用 yum install 将其一一安装到位。

下载安装mono 3.0.12

# cd /usr/local/src
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.tar.bz2
tar -jxvf libgdiplus-2.10.tar.bz2
cd libgdiplus-2.10
./configure --prefix=/usr
make && make install
# wget http://download.mono-project.com/sources/mono/mono-3.0.12.tar.bz2
# tar -jxvf mono-3.0.12.tar.bz2
# cd mono-3.0.12
# ./configure --prefix=/usr
# make && make install

漫长的等待之后,调用下mono看看吧。进入/usr/lib/mono 目录就可以看到熟悉的.NET程序集咯...

如果还要安装Jexus这个Web服务器的话,请参考善友兄写的这篇文章: 《32和64位的CentOS 6.0下 安装 Mono 2.10.8 和Jexus 5.0》


如果您跟我一样是个Linux菜鸟的话,推荐鸟哥的Linux学习网站给您,另外他写的两本Linux的书也非常棒。