Compile mono on Debian

Mono enables you to run .Net program on almost every operating systems and my second favorite one is Debian/Linux (my first one is Windows as you can guess).

You need to get some tools :

1
apt-get install subversion make automake autoconf python gcc g++ libtool pkg-config bison libxml-perl gawk

Get the SVN repository (very slow) :

1
2
3
4
5
6
mkdir ~/mono
cd ~/mono
svn co svn://anonsvn.mono-project.com/source/trunk/mcs
svn co svn://anonsvn.mono-project.com/source/trunk/mono
svn co svn://anonsvn.mono-project.com/source/trunk/libgdiplus
#svn co svn://anonsvn.mono-project.com/source/trunk/gtk-sharp

You need to set this :

1
export PKG_CONFIG_PATH=/usr/lib/pkgconfig/

If you don’t have any mono on the system :

1
2
3
cd ~/mono/mono
make get-monolite-latest
make EXTERNAL_MCS=false

You can now compile everything, it takes a lot of time to complete:

1
2
3
4
cd ~/mono/mono
./autogen.sh
make
make install

If there’s a problem with a missing file error, try to re-launch these three last commands, the “./autogen.sh” should fix it.

GD Star Rating
loading...
Compile mono on Debian, 10.0 out of 10 based on 1 rating
Posted in English. 1 Comment »

One Response to “Compile mono on Debian”

  1. nizo Says:

    thanx, really helped me!!!

    GD Star Rating
    loading...

Leave a Reply