Install Mono and MonoDevelop and centosmonodevelop in CentOS 7.

Source: Internet
Author: User

Install Mono and MonoDevelop and centosmonodevelop in CentOS 7.

[Original article from: http://www.linuxidc.com/linux/2015-01/112350.htm]

Mono was installed several years ago and never used again. I recently purchased a new server and tried to install it again. I first installed the latest CentOS 7.2 and followed the articles I found. Unfortunately, it was almost impossible, some source package dependency parsing is interrupted, and later I finally found the above Article, now listing all the steps:

All this operation is in root mode.

1. Execute rpm -- import "http://keyserver.Ubuntu.com/pks/lookup? Op = get & search = 0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"

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

1-2 Add the resource environment Used for mono Installation

3. Run yum install mono to install the installation package as prompted.

4. Install libgdiplus

A. mkdir/var/local/src create a folder

B. cd/var/local/src

C. wget http://download.mono-project.com/sources/libgdiplus/libgdiplus-3.12.tar.gz download the file

D. tar-zxvf libgdiplus-3.12.tar.gz unzip the downloaded file

E. cd libgdiplus-3.12 go to extract folder

F ../configure the installer

G. make & make install compile and install

5. Install gtk-sharp

A. cd/var/local/src enter the file to be created

B. wget http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.26.tar.gz download the file

C. tar-zxvf gtk-sharp-2.12.26.tar.gz unzip the downloaded file

D. cd gtk-sharp-2.12.26 go to extract folder

E../configure the installer

F. make & make install compile and install

6. install monodevelop yum install monodevelop

[Failed to parse source code dependency because step 1 of installation fails]

7. Test the mono environment:

[root@CentOS Test]# mono -VMono JIT compiler version 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 04:43:41 EST 2015)Copyright (C) 2002-2014 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:            sgen

 

8. Run a. net test program:

[Root @ CentOS Test] # mono dotNetTest.exe OS Version: Unix 3.10.0.327.NET version: 4.0.30319.17020Hello, Test program

Finally, the problem that plagued the last day was solved.

 

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.