Mono 3.0.0基于CentOS 6构建

时间:2012-11-01 19:46:11

标签: build mono centos rhel centos6

我最近发现自己需要为CentOS 6构建Mono 3.0,并要求我的基础设施人员尽可能保持系统尽可能靠近CentOS(如果可能的话,没有第三方软件包)。

因为目前没有我能找到的Mono 3.0 RPM,所以我在一个干净的Minimal安装的CentOS 6.3上进行了从零开始构建它的练习。

可以在CentOS 6.3上构建没有外部软件包的Mono 3.0。

2 个答案:

答案 0 :(得分:10)

执行CentOS 6.3最小安装

ifup eth0

yum -y update
yum -y install glib2-devel
yum -y install libpng-devel
yum -y install libjpeg-devel 
yum -y install giflib-devel 
yum -y install libtiff-devel 
yum -y install libexif-devel 
yum -y install libX11-devel 
yum -y install fontconfig-devel 
yum -y install gettext 
yum -y install make 
yum -y install gcc-c++

# amusing hack to fix the mono make file

export echo=echo

# build libgdiplus
curl -O http://download.mono-project.com/sources/libgdiplus/libgdiplus-2.10.9.tar.bz2
bunzip2 libgdiplus-2.10.9.tar.bz2
tar xvf libgdiplus-2.10.9.tar
cd libgdiplus-2.10.9
./configure --prefix=/usr/local
make
make install

# build mono
curl -O http://download.mono-project.com/sources/mono/mono-3.0.0.tar.bz2
bunzip2 mono-3.0.0.tar.bz2
tar xvf mono-3.0.0.tar
cd mono-3.0.0
./configure --prefix=/usr/local
make
make install

# tell binfmt how to launch CLR executables
echo ':CLR:M::MZ::/usr/local/bin/mono:' > /proc/sys/fs/binfmt_misc/register

答案 1 :(得分:6)

Timotheus Pokorra单声道存储库

使用tpokorra repositorymono 3.2.5 for Centos 6.x(和其他发行版)

Yum存储库配置

将文件mono.repo放入目录/etc/yum.repos.d/,内容为:

[home_tpokorra_mono]
name=mono and monodevelop (CentOS_CentOS-6)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/home:/tpokorra:/mono/CentOS_CentOS-6/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/home:/tpokorra:/mono/CentOS_CentOS-6/repodata/repomd.xml.key
enabled=1

安装

yum install mono-opt

更多

http://software.opensuse.org/download/package?project=home:tpokorra:mono&package=mono-opt