I just got Nant to build on Linux. There were two main issues that people may or may not be aware of. If you already know this stuff, please forgive the duplication.

I use Slackware Linux 10, with a newer Kernel. I was building the nightly build from January 5th. I had built Mono from source, which may have something to do with it.

1. Problem with figuring out the OS bin the NAnt.build script. This causes the build to start doing some kind of documentation task which hangs forever.

In the main build script the following target ran even though I was in Linux:

<target name="install-windows" depends="userdoc" if="${platform::is-win32()}">

So I changed the target:

<target name="install" depends="install-windows, install-linux" />

to:

<target name="install" depends="install-linux" />

2. Permission problem once NAnt is built. This manifests itself with a weird error making it a bit hard to diagnose.

There are two files in my /usr/local/share/NAnt/bin directory which had the permissions set as -rwx------: log4net.dll and NAnt.exe.config

I couldn't find anything on this stuff on the web except for a few questions from people having the same problem. I wonder if some of these things could be put into the FAQ. I could write something up if you would like.

I hope this helps someone. It took me two evenings to install NAnt, because when the thing hung I just thought it was normal and let it sit there. :)

Regards,
Dustin Aleksiuk

Reply via email to