PDA

View Full Version : Installing Mono creates errors



BlueNoteWeb
04-07-2007, 04:14 PM
I'm trying to get Mono installed on a DA server and running into a problem that's beyond my expertise.

I did find a how-to on the forum:
http://www.directadmin.com/forum/showthread.php?t=11709
I really prefer not to install from source when I can install from Yum - makes things easier later. Mono has a yum repo available on their site. After installing that I used:

yum install mono*
yum install xps*
yum install mod_mono


Everything appeared to work fine.

I then followed the instructions in the above tutorial about updating httpd.conf to make httpd recognize the new stuff. When I restart httpd I get this error:

Syntax error on line 8 of /etc/httpd/conf.d/mod_mono.conf:
Cannot load /usr/lib/httpd/modules/mod_mono.so into server: /usr/lib/httpd/modules/mod_mono.so: undefined symbol: apr_pool_cleanup_null


A quick google turned up this page:

(http://lists.ximian.com/pipermail/mono-devel-list/2006-August/019891.html)
Looks like the APR available to me through yum was a .9 version, while there's a 1.2.x available. I couldn't find that version anywhere through yum so I did install it from source - same error.

Any idea what to check next?

hehachris
04-11-2007, 09:01 AM
Please post the content of line 8 in your mod_mono.conf here.

BlueNoteWeb
04-14-2007, 08:11 AM
Chris, thanks for the reply.

Here's the top of the mod_mono.conf, line 8 is the last line I copied:


# mod_mono.conf

# Acthung! This file may be overwritten
# Use 'include mod_mono.conf' from other configuration file
# to load mod_mono module.

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


I had to uninstall all of this last week so the server could still be up and running, but I've re-installed this morning. I still get the same error.

BlueNoteWeb
04-14-2007, 01:37 PM
I solved this problem by upgrading to Apache2 using the instructions available here:
http://www.directadmin.com/features.php?id=441

For the sake of anyone else who finds this thread, I was successful getting Mono to work on this DA server. More information is available here:
http://www.directadmin.com/forum/showthread.php?p=99305#post99305