zoukankan      html  css  js  c++  java
  • 【转】在CentOS 6.X上部署C# 开发环境

    1.更新系统   

     yum update

    2.安装必要的相关库   

     yum 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

    3.安装 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 

    4.安装 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 可查看安装好的版本

    6、创建hello.cs文件

    using System;
      
    public class HelloWorld
    {
        static public void Main ()
        {
            Console.WriteLine ("Hello Mono World");
        } 
    }

    7、编译运行

    mcs hello.cs

    mono hello.exe

    原帖地址:https://blog.csdn.net/gaoxuefeng/article/details/7907652

         https://blog.csdn.net/yenange/article/details/53489361

  • 相关阅读:
    谈谈一些有趣的CSS题目(十四)-- 纯 CSS 方式实现 CSS 动画的暂停与播放!
    Oracle 12c CDB PDB
    sqlplus 调试存储过程
    Oracle 存储过程A
    %notfound的理解——oracle存储过程 .
    ORA-04091: table xxx is mutating, trigger/function may not see it
    JQuery Div scrollTop ScrollHeight
    JQuery JSON Servlet
    div 移动
    HTML 三角符号
  • 原文地址:https://www.cnblogs.com/yzz071277/p/9278488.html
Copyright © 2011-2022 走看看