[Mono-osx] Getting Mono to work with Apache in Mac OS X Leopard
curtis.wensley at gmail.com
Fri Jul 24 23:03:06 EDT 2009
I got a similar error to that when I was linking to the 32-bit versions of
glib2, libintl, and libiconv.
Try running "otool -L /usr/libexec/apache2/mod_mono.so". This is the output
/opt/local/lib/libglib-2.0.0.dylib (compatibility version 2001.0.0, current
/opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, current
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current
(compatibility version 2.0.0, current version 136.0.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
Basically, the os doesn't know where to get the appropriate libs, or they
are not associated with your compiled library (happens when they are 32-bit
and you are compiling 64-bit).
> Console says this >>>
> 24.07.09 18:05:33 org.apache.httpd httpd: Syntax error on line 529
> of /private/etc/apache2/httpd.conf: Syntax error on line 8 of
> /private/etc/apache2/mod_mono.conf: Cannot load
> /usr/libexec/apache2/mod_mono.so into server:
> dlopen(/usr/libexec/apache2/mod_mono.so, 10): Symbol not found:
> _g_ascii_table\n Referenced from: /usr/libexec/apache2/mod_mono.so\n
> Expected in: flat namespace\n
> Thanks for your reply...
> eto wrote:
>> Yes, Macports is for easy installing of 64-bit glib2. You cannot use
>> glib2 from the mono framework, as it is 32 bit. You do not need to
>> re-compile Mono framework with -m64 and I use the standard os x binaries
>> & installer from mono-project.com
>> However, you DO need to compile glib2 and mod_mono with -m64 though.
>> Check the Console -> All Messages (or /var/log/system.log). It will tell
>> you why apache doesn't start.. typically because the mod_mono can't be
>> loaded because it's the wrong architecture.
>> md582 wrote:
>>> do i need macports, or is it only for easy installing glib2 ?
>>> I tried to make mod_mono with "// sigaddset (&sigset, SIGPWR);", and
>>> "--prefix=/Library/Frameworks/Mono.framework/Versions/Current", but
>>> Apache does not start. And no error log.
>>> I put my last mail at the end of this mail, with my detailed
>>> Perhaps you could help me ?
>>> I dont understand why Apache makes no error log....
>>> Do I have to recompile the Mono-Framework with "-m64" ?
>>> Any Idea ?
View this message in context: http://www.nabble.com/Getting-Mono-to-work-with-Apache-in-Mac-OS-X-Leopard-tp24629121p24654487.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx