1、安装yum环境所需
yum install yum-utils
rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
yum-config-manager --add-repo http://download.mono-project.com/repo/centos/
2、各种包 yum 安装
yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
3、下载mono包(可根据自己需求下载)
cd /usr/local/src
wget http://download.mono-project.com/sources/mono/mono-3.2.8.tar.bz2
tar jxf mono-3.2.8.tar.bz2
cd mono-3.2.8
4、make 三部曲 此处等待时间比较长 好坑...
./configure --prefix=/opt/mono
make && make install
5、添加环境变量
export PATH=$PATH:/opt/mono/bin
export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig
make sure to add the previous two lines to your ~/.bash_profile
6、可以开心的玩耍mono了
[root@localhost ~]# mono -V
Mono JIT compiler version 3.0.7 (tarball Thu Jul 28 10:27:07 CST 2016)
Copyright (C) 2002-2012 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS: __thread
SIGSEGV: altstack
Notifications: epoll
Architecture: amd64
Disabled: none
Misc: softdebug
LLVM: supported, not enabled.
GC: Included Boehm (with typed GC and Parallel Mark)
转载于:https://blog.51cto.com/yhgcenter/1831099