zoukankan      html  css  js  c++  java
  • centos 6.3安装mono和monoDevelop过程

    Mono官方网站:http://www.mono-project.com
    MonoDevelop官方网站:http://monodevelop.com/
    注:整个安装过程最好在同一个终端下完成!
    1、安装一些会使用到的软件包:

    yum –y install 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 httpd httpd-devel 

    yum install atk-devel
    yum install pango-devel 

    yum install libgnomeui-devel   (或许yum install gtk2-devel  也可以)

    2、安装libgdiplus:
    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=/opt/mono
    make
    make install
    echo "/opt/mono/lib" > /etc/ld.so.conf.d/mono.conf
    ldconfig
    3、安装Mono:
    cd /usr/local/src/ 
    wget http://download.mono-project.com/sources/mono/mono-2.10.6.tar.bz2
    tar -jxvf mono-2.10.6.tar.bz2
    cd mono-2.10.6
    ./configure --prefix=/opt/mono
    make  
    漫长的等待.......
    make install
    echo export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig:$PKG_CONFIG_PATH>>~/.bash_profile
    echo export LD_LIBRARY_PATH=/opt/mono/lib:$LD_LIBRARY_PATH>>~/.bash_profile
    echo export PATH=/opt/mono/bin:$PATH>>~/.bash_profile
    source ~/.bash_profile
    输入 mono -V 如有mono版本信息,则安装成功。
    4、安装GtkSharp:
    cd /usr/local/src/
    wget http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.11.tar.bz2
    tar -jxvf gtk-sharp-2.12.11.tar.bz2
    cd gtk-sharp-2.12.11
    ./configure --prefix=/opt/mono
    make
    make install

     

    5、安装Mono-Addins:
    cd /usr/local/src/
    wget http://download.mono-project.com/sources/mono-addins/mono-addins-0.6.tar.bz2
    tar -jxvf mono-addins-0.6.tar.bz2
    cd mono-addins-0.6
    ./configure --prefix=/opt/mono
    make
    make install
     
    6、安装GnomeSharp:
    yum install libgnome-devel libgnomecanvas-devel libgnomeui-devel libgnomeprint22-devel libgnomeprintui22-devel gnome-panel-devel gtkhtml3-devel gtkhtml2-devel compat-gtkhtml38-devel librsvg2-devel vte-devel libvte-java-devel
    cd /usr/local/src/
    wget http://download.mono-project.com/sources/gnome-sharp220/gnome-sharp-2.20.0.tar.bz2
    tar -jxvf gnome-sharp-2.20.0.tar.bz2
    cd gnome-sharp-2.20.0
    ./configure --prefix=/opt/mono
    make
    这时会有一个Error,找不到"Mono.GetOptions"
    注释/root/monodevelop/gnome-sharp-2.20.0/sample/gnomevfs/Makefile,第218,446,447行
    make install
     
    7、安装gecko-sharp:
    cd /usr/local/src/
    wget http://download.mono-project.com/sources/gecko-sharp-2.0/gecko-sharp-2.0-0.13.tar.bz2
    tar -jxvf gecko-sharp-2.0-0.13.tar.bz2
    cd gecko-sharp-2.0-0.13
    ./configure --prefix=/opt/mono
    make
    make install
     
    8、安装MonoDevelop:
    cd /usr/local/src/
    wget http://download.mono-project.com/sources/monodevelop/monodevelop-2.8.8.4.tar.bz2
    tar -jxvf monodevelop-2.8.8.4.tar.bz2
    cd monodevelop-2.8.8.4
    ./configure --prefix=/opt/mono
    make
    make install
     
    最后,如果/usr/local/src/和/opt/mono是root用户所有,那么用chown和chgrp命令将所有权改为自己的普通用户。
  • 相关阅读:
    [转]AJAX POST请求中参数以form data和request payload形式在servlet中的获取方式
    C#文档注释
    VS 单元测试项目,测试的时候运行按钮不可用
    获取泛型类的Type
    Sql 复习(4)
    Sql 复习(3)
    sqlserver的soundex
    sqlserver的trim
    Sql 复习(2)
    糟糕的设计
  • 原文地址:https://www.cnblogs.com/dolphi/p/3427874.html
Copyright © 2011-2022 走看看