Talk:Mono

May i suggest a cleanup of this? If someone could contact me at magnusjjjatgmail.com (msn adress too), i would be very happy. I tried to follow the instructions here, and successfully compiled gdilibs and mono (Had to compile glib since the dreamhost version is too old), but i can't get it to run as a fastcgi extension. If someone will help me, i promise to write some nice instructions for others to follow ;). - Tuxie

Instructions for compiling and installing mono per the website(http://www.mono-project.com/Release_Notes_Mono_2.4): - Compile libgdiplus to support System.Drawing (We shouldn't need this, as we're really only interested in packages that relate to ASP.Net) $ tar xzf libgdiplus-2.4.tar.gz   $ cd libgdiplus-2.4 $ ./configure $ make $ make install - Then compile Mono itself: $ tar xzf mono-2.4.tar.gz   $ cd mono-2.4 $ ./configure $ make $ make install

I jumped straight into downloading and compiling mono after configuring with this command (which seemed to work): $ ./configure --prefix=$HOME/test.mydomain.com

Make runs for a long time (likely to get an error about using too much memory/cpu) $ nice -n 19 make

Purported FastCGI Config for Apache FastCgiServer /srv/www/cgi-bin/mono-server2 -socket /tmp/fastcgi-mono-server -initial-env MONO_FCGI_APPLICATIONS=/test:/srv/www/htdocs/test

 Action fastcgi-mono /cgi-bin/mono-server2 SetHandler fastcgi-mono 

Building Mono from sources
I tried building mono with just ./configure & make, but it did not worked. There are no glib-dev headers installed on my dreamhost shared server.

I went a bit further by using : ./configure --prefix=~/mono --with-moonlight=no --with-glib=embedded --with-xen_opt=no --with-x=no but it looks like the embedded glib does not want to compile in this way. I tried both 2.4 and 2.6.

Since I only needed an old version of the mono and gmcs I went and installed the mono-gmcs package available from Dreamhost Debian repository : http://adi.roiban.ro/2011/01/30/running-mono-and-gmcs-c-compiler-on-dreamhost-shared-account/

New walkthrough
I added my own experience with installing mono 2.10.8 with nginx:

http://wiki.dreamhost.com/Installing_Mono_on_VPS_with_nginx

Akroplax 22:45, 9 April 2012 (PDT)