[Mono-osx] Getting Mono to work with Apache in Mac OS X Leopard

eto 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
I get:

/usr/libexec/apache2/mod_mono.so:
	/opt/local/lib/libglib-2.0.0.dylib (compatibility version 2001.0.0, current
version 2001.4.0)
	/opt/local/lib/libintl.8.dylib (compatibility version 9.0.0, current
version 9.2.0)
	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
111.1.4)
	/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current
version 8.0.0)
	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
(compatibility version 2.0.0, current version 136.0.0)
	/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version
1.0.0)


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).

Cheers,
Curtis.


md582 wrote:
> 
> Hi,
> Console says this >>>
> 
> 24.07.09 18:05:33 org.apache.httpd[61872] 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...
> md582
> 
> 
> eto wrote:
>> 
>> Hi,
>> 
>> 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.
>> 
>> Cheers!
>> Curtis.
>> 
>> 
>> md582 wrote:
>>> 
>>> Hello,
>>> 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
>>> problem.....
>>> 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 mailing list