[centos_7.4] Linux compile and install the mono environment

Source: Internet
Author: User
Tags bz2

One installation of mono

installation process : Download mono installation Source, configure, compile, install, set environment variables.

# wget http://download.mono-project.com/sources/mono/mono-5.4.0.201.tar.bz2# tar-jxvf mono-5.4.0.201.tar.bz2# CD mono-5.4.0.201#./configure--prefix=/usr/local/mono# make && make install# vi/etc/profile Add environment variable at the end: path=$ Path:/usr/local/mono/binexport path Save and exit # Source/etc/profile   set Effective # echo $PATH            output environment variable PATH value to verify that the added variable is in effect # Mono-v               Viewing the mono version

  Note :--prefix=/usr/local/mono is the directory where the mono installation is set up, so path adds the bin directory path under that installation directory.

Two-Test

# vi hello.csusing system;using system.text;namespace hello{        class Hello        {                static void Main (string[] args) c5/>{                        Console.WriteLine ("Hello world!");                        Console.readkey ();}}}        Save and Exit # MCS Hello.cs      Build executable program hello.exe# Mono hello.exe Execute executable    program

  

End!

[centos_7.4] Linux compile and install the mono environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.