[Mono-list] Problems with compiling mod-mono

monoMVC zbjin at yahoo.com
Wed Jul 8 06:02:59 EDT 2009


Hi,

mod_mono's "make install" also does not work, after a few hours' trial, I
find a manual installation way,  I would like to share a few tips about it.

Assume :
1.  mono and xsp is installed in /opt/mono,
2.  apaches is installed by apt-get, so its modules directory is
/usr/lib/apache2/modules

after compiling mod_mono, 

cp ~/mod_mono-2.4.2/src/mod_mono.la /usr/lib/apache2/modules/
cp ~/mod_mono-2.4.2/src/.libs/mod_mono.so /usr/lib/apache2/modules/
cp ~/mod-mono-2.4.2/mod_mono.conf /etc/apache2/mods-available
ln -s /etc/apache2/mods-available/mod_mono.conf /etc/apache2/mods-enabled/

cd ~/mod_mono-2.4.2/scripts; make install   
# though "make install" of the project can't work, this do work.

modify mod_mono.conf :

<IfModule !mod_mono.c>
	LoadModule mono_module /usr/lib/apache2/modules/mod_mono.so
</IfModule>

AddType ...
...

AddHandler mono .aspx .ascx .asax .ashx .config .cs .asmx .axd
MonoServerPath test "/opt/mono/bin/mod-mono-server2"

Alias /test "/opt/mono/lib/xsp/test"
MonoApplication test "/test:/opt/mono/lib/xsp/test"
<Location "/test">
	SetHandler mono
	MonoSetServerAlias test
</Location>

then restart apache, you can successfully download:
wget localhost/test/index.aspx

BTW, to successfully build xsp test example, you need,
export PKG_CONFIG_PATH=/opt/mono/lib/pkgconfig

-- 
View this message in context: http://www.nabble.com/Problems-with-compiling-mod-mono-tp24343364p24388674.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list