centos mono

时间:2022-03-11 15:48:31

wget http://download.mono-project.com/sources/mono/mono-4.0.1.tar.bz2
wget http://download.mono-project.com/sources/monodevelop/monodevelop-5.9.0.431.tar.bz2
wget http://download.mono-project.com/sources/mono-addins/mono-addins-1.1.tar.gz
wget http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.26.tar.gz
wget http://download.mono-project.com/sources/gnome-sharp2/gnome-sharp-2.24.1.tar.bz2
wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-3.12.tar.gz

tar -jxvf mono-4.0.1.tar.bz2
cd mono-4.0.1
./configure --prefix=/usr
make && make install

本次所有操作在root模式下

1.执行  rpm --import "http://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"

2.执行  yum-config-manager --add-repo http://download.mono-project.com/repo/centos/

1-2 添加mono安装使用的资源环境

3.执行 yum install mono  按照提示安装所以安装包

4.安装libgdiplus

  a.mkdir /var/local/src                                 创建文件夹

  b.cd /var/local/src                                   进入创建文件

  c.wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-3.12.tar.gz     下载文件

  d. tar -zxvf libgdiplus-3.12.tar.gz                               解压下载文件

  e.cd libgdiplus-3.12                                       进入解压文件夹

  f../configure                                          对安装程序进行配置

  g.make && make install                                    编译并安装

5.安装gtk-sharp

    a.cd /var/local/src                                               进入创建文件

  b.wget http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.26.tar.gz     下载文件

  c. tar -zxvf gtk-sharp-2.12.26.tar.gz                                        解压下载文件

  d.cd gtk-sharp-2.12.26                                             进入解压文件夹

  e../configure                                                    对安装程序进行配置

  f.make && make install                                               编译并安装

6.安装monodevelop yum install monodevelop

安装完成就OK拉