How to compile and install Mono notes in Linux system

  
                

mono is a cross-platform ·NET runtime environment developed by Novell. It can run on multiple systems, including Linux systems. The following small series will introduce you how to compile and install mono notes on Linux servers.

a, the installation package dependencies

code is as follows:

yum install gcc bison pkgconfig glib2-devel gettext make gcc-c ++ libstdc ++ - devel libgdiplus-devel < Br>

Second, download the source code and extract the

code as follows:

#Download address at http://ftp.novell.com/pub/mono/sources/mono/

#我下载的2.10.2《/p》 "p"cd /usr/local/src

wget -c http://ftp.novell.com/pub/mono/sources /mono/mono-2.10.2.tar.bz2

tar xf mono-2.10.2.tar.bz2

cd mono-2.10.2

The installation

code is as follows:

. /configure --prefix=/usr/local/mono

make

make install

Fourth, add environment variables for users who use mono

As follows:

#Add

to this user's ~/.bash_profile export PKG_CONFIG_PATH=/usr/local/mono/lib/pkgconfig:

export PATH=/usr /local/mono/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin :/root/bin

#reload

source ~/.bash_profile

V. Test

The code is as follows:

/usr/local/mono/bin/mono-test-install

Active Mono: /usr/local/mono/bin/mono"/p" "p"Your have a working System.Drawing setup

Your file system watcher is: System.IO.InotifyWatcher

If you don't do the fourth step, you will find the following error:

The code is as follows:

/Usr/local/mono/bin/mono-test-install

Active Mono:

Warning : pkg-config could not find mono installed on this system

No dotnet pkgconfig found, Windows.Forms, System.Drawing and others will not work

The above is the compilation and installation of mono notes under Linux server The method is introduced, can you quickly compile and install the mono notes according to the above steps, is it very convenient? Give it a try.

Copyright © Windows knowledge All Rights Reserved