mono linux 安装 yum,linux/centos/redhat 安装mono环境   X64系统

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)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值