[Mono-osx] (DESPERATE!!) Getting Mono to work with Apache in Mac OS X Leopard

Asle Benoni asle.benoni at gmail.com
Tue Aug 18 11:11:22 EDT 2009


Thanks,
but not sure where this gets me.
Do I first write all this stuff to set up the environment and then  
build and install mod_mono, make and make install like this:

> PKG_CONFIG_PATH="/opt/local/lib/pkgconfig" CFLAGS="-m64" ./configure
> --prefix=/Library/Frameworks/Mono.framework/Versions/Current
> make
> sudo make install

Since I get this error, does it mean I have problems with wrong  
architecture?
I see also that in  /usr/libexec/apache2 I have the mod_mono.so but it  
points to nothing. Is this correct?

lrwxr-xr-x  1 root  wheel        17 Aug 18 16:24 mod_mono.so ->  
mod_mono.0.0.0.so
(mod_mono.0.0.0.so does not exist!)


/asle

Den 18. aug.. 2009 kl. 17.04 skrev Andrew Satori:

> You've done alot of not needed work.
>
>
> The trick is setting the build environment up first.  You just have to
> ensure that you have your environment correct.
>
> export SDK=/Developer/SDKs/MacOSX10.5.sdk
> export CFLAGS="-O -mmacosx-version-min=10.5 -arch ppc64 -arch x86_64 -
> isysroot $SDK"
> export LDFLAGS="-arch x86_64 -arch ppc64 "
> export LD="gcc -mmacosx-version-min=10.4 -isysroot $SDK - 
> nostartfiles -
> arch x86_64 -arch ppc64"
>
>
> This will get your basic 64bit environment set, but then you have to
> make the mod_mono specific tweaks.  configure won't find glib-2.0.
> You have to build it in the 64 bit environment, though iconv is 64bit
> in /usr/lib, so that should get you where you need to be.
>
>
>
>
> On Aug 18, 2009, at 10:23 AM, Andrew Satori wrote:
>
>> Are the glib-2.0 pc files not included in the framework anymore ?
>>
>> On Aug 17, 2009, at 7:41 PM, eto wrote:
>>
>>>
>>> Hi asleB,
>>>
>>> Looks like you need to uninstall & re-build libiconv.  Note that
>>> it's not
>>> JUST libtool and glib2 that need to be built for x64, it's ALL
>>> dependant
>>> libraries as well.
>>>
>>> You have a few choices: uninstall all macports manually then re-
>>> install
>>> them, or wipe your macports and install fresh, since nothing would
>>> have been
>>> compiled in 64 bit anyway.
>>>
>>> Hope this helps!
>>> Curtis.
>>>
>>>
>>> asleB wrote:
>>>>
>>>> Hello,
>>>> I wonder if anyone here could spare a little time to help me get
>>>> mod_mono configured with my Apache.
>>>> I am willing to pay to fix this!
>>>>
>>>> /asle
>>>>
>>>> Den 14. aug.. 2009 kl. 19.45 skrev Asle Benoni:
>>>>
>>>>> Hello,
>>>>> I think I progressed much here. I was able to uninstall old
>>>>> packages
>>>>> so that I could be X64 packages. First of all I think the clue was
>>>>> to get uninstall and install libtool and glib2. What a mess it  
>>>>> was,
>>>>> I don' even remember now all I did.
>>>>>
>>>>>
>>>>> Anyway I downloaded mod_mono source and did the configure stuff  
>>>>> but
>>>>> it fails on make  with this error. I am not sure how to fix it:
>>>>
>>> -- 
>>> View this message in context: http://www.nabble.com/Re%3A-Getting-Mono-to-work-with-Apache-in-Mac-OS-X-Leopard-tp24971800p25016194.html
>>> Sent from the Mono - OSX mailing list archive at Nabble.com.
>>>
>>> _______________________________________________
>>> Mono-osx mailing list
>>> Mono-osx at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>>
>>
>> _______________________________________________
>> Mono-osx mailing list
>> Mono-osx at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/mono-osx
>>
>
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-osx/attachments/20090818/21442057/attachment-0001.html 


More information about the Mono-osx mailing list