----- Original Message ----- 
From: "R. Tyler Ballance" <[EMAIL PROTECTED]>
To: "Neil Taylor" <[EMAIL PROTECTED]>
Cc: <nant-users@lists.sourceforge.net>
Sent: Friday, November 10, 2006 7:19 AM
Subject: Re: [NAnt-users] NAnt on Mono on Mac OS X


>
> On Nov 9, 2006, at 5:06 PM, Neil Taylor wrote:
>
>> Hi,
>>
>> I am trying to setup NAnt to run with Mono (1.1.18) on Mac OS X
>> (10.4). After a bit of investigation, I find that the binary install
>> of Mono for OS X includes NAnt. It installs a shell script in /usr/
>> bin/nant which includes a line to run NAnt. This was generating the
>> following error:
>>
>> ---
>> NAnt 0.85 (Build 0.85.2344.0; rc4; 06/02/2006)
>> Copyright (C) 2001-2006 Gerry Shaw
>> http://nant.sourceforge.net
>>
>>
>> BUILD FAILED
>>
>> The current runtime framework 'mono-2.0' is not correctly configured
>> in the NAnt configuration file.
>>      Unable to locate 'mono' module using pkg-config. Download the
>> Mono development packages from http://www.mono-project.com/downloads/.
>>
>> For more information regarding the cause of the build failure, run
>> the build again in debug mode.
>>
>> Try 'nant -help' for more information
>> ---
>>
>> Adding the following to the start of the /usr/bin/nant startup script
>> appears to cure the problem:
>>
>> export PKG_CONFIG_PATH=/Library/Frameworks/Mono.framework/Versions/
>> 1.1.18/lib/pkgconfig
>>
>> However, I now appear to get two messages from NAnt when it is doing
>> a build. Such as:
>>
>> ---
>>       [exec] Hello World using C#
>>       [exec] Hello World using C#
>>
>>
>> BUILD SUCCEEDED
>> BUILD SUCCEEDED
>
> Man, you figured it out, I was hoping to have a chance to whore out
> my blog post about it (http://bleepsoft.com/tyler/index.php?
> itemid=82) heh, got to anyways, woohoo
>
>
> Anyways, I'll add in that I've always (for the past month since
> switching to NAnt at least :)) seen this on Mac OS X, I have never
> seen it on SUSE (10+), FreeBSD, or Windows for that matter.
>
> But just for the record, it's got nothing to do with the
> PKG_CONFIG_PATH environment variable, my guesses are with the
> universal binary thing (not sure how that would work) or some
> platform-specific bug in how NAnt does this output. Unfortunately,
> I've not had time to go NAnt-code-spelunking.
>
> If you find a solution, let the list know ;)
>
> A cheap way would be to pipe the nant output in the /usr/bin/nant
> shell script into a regexp, but that's fugly, and I don't encourage it

This is due to a recent change in Mono. I've committed a fix for this, which 
is part of the 0.85 RTM.

Gert 


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to