CentOS 7 install Mono and MonoDevelop

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

Mono was installed several years ago, but has never been used again. I recently purchased a new server and want to install another one. I installed the latest CentOS 7.2 first, and then followed the searched articles. Unfortunately, almost unsuccessful, the package dependency analysis of some sources was interrupted, and finally found With the above article, all the steps are now listed:

All operations this time are in root mode

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

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

1- 2 Add the resource environment used by mono installation

  1. Execute yum install mono and follow the prompts to install all the installation packages

  2. Install libgdiplus

a. mkdir /var/local/src

Create folder

b. cd /var/local/src

Enter to create file

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

download file

d. tar -zxvf libgdiplus-3.12.tar.gz

Unzip the downloaded file

e. cd libgdiplus-3.12

Enter the unzipped folder

f. ./configure

Configure the installer

g. make && make install

Compile and install

  1. Install gtk-sharp

a. cd /var/local/src

Enter to create file

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

c. tar -zxvf gtk-sharp-2.12.26.tar.gz

Unzip the downloaded file

d. cd gtk-sharp-2.12.26

Enter the unzipped folder

e. ./configure

Configure the installer

f. make && make install

Compile and install

  1. Install monodevelop yum install monodevelop

[The installation step 6 was unsuccessful, and the source code dependency resolution failed]

7 , Test the mono environment:

[ root@CentOS Test]# mono -V
Mono JIT compiler version 4.2.1(Stable 4.2.1.102/6dd2d0d Thu Nov 1204: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.17020

Hello,test program

Finally solved the problem that has plagued for nearly a day.

9, upgrade Jexus

After consulting the author of Jexus, he said that online upgrades can be supported. The method he gave is posted below:

The simple way is to update to 5.8.1 online, then download 5.8.1 on windows, after decompression, upload the exe and dll in the data folder to the jexus folder of the server, overwrite the file, and then:

sudo ./jws stop

sudo killall -9 mono

sudo ./jws regsvr

sudo ./jws start

The command for online upgrade is:
sudo curl jexus.org/5.8.x/upgrade|sh
Note: This command can only be used for the path where jexus is installed in the /usr/jexus folder. In addition, the upgraded version is 5.8.0

Recommended Posts

CentOS 7 install Mono and MonoDevelop
Install Mono 3.2 and Jexus 5.4 under CentOS 6.3
Install centos7 and connect
Install Mono 2.10.8 and Jexus 5.0 under 32- and 64-bit CentOS 6.0
centos7 install python3 and ipython
Know Linux and install CentOS
CentOs7.3 compile and install Nginx 1.9.9
CentOS6.5 install Java 8 and Tomcat8
Centos compile and install Git
Centos6.5 install and configure mongodb
CentOS7 install python3 and pip3
CentOS7 install OracleJDK and JRE
CentOS6.5 install Java 8 and Tomcat8
CentOS6 install and crack Jira 7
CentOS6.5 install Java 8 and Tomcat8
Centos7 compile and install ntp-4.2.8p11
CentOS 6.9 compile and install python
CentOS6 install and crack confluence
CentOS 6 compile and install python 3
CentOS6 install and crack Jira 7
1.5 Install Centos7
Centos 7 install jdk and package service service
CentOS7 yum install and start mysql
Install and configure keepalived under CentOS 5.9
CentOS Yum compile and install MySQL 5.6
Compile and install LAMP under Centos 5.2
CentOS 8 install Git and basic configuration
CentOS 6.x compile and install Nginx
CentOS7 compile and install L(A|N)MP environment
CentOS7.3 install iptables and detailed use
CentOS quickly install Python3 and pip3
CentOS7 yum install and start mysql
CentOS 8 - install and configure NFS service
Centos7 and centos8 install mysql5.6 5.7 8.0 so simple
Centos7 uninstall openJdk, and install JDK1.8
Install Python3 and ansible under CentOS8
Install and use docker under CentOS 6.8
CentOS7 install and use SQL Server
CentOS Minimal install and configure TIPS
Install Python3 and Py under CentOS7
Install and configure FreeIPA in Centos7
Linux CentOS6 compile and install Pyt
virtualBox install centos, and build tomcat
Centos6 install Python2.7.13
Compile and install libmodbus library under CentOS7
Centos7.3 install nginx
CentOS7.2 install Mysql5.7.13
CentOS install Redmine
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS 7 install Docker
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
CentOS7 install Docker
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS7.5 source code compile and install mysql5.7.29