Actually, when building Mahout in Windows, the only part that requires Cygwin is the Tests. For the "core" you can just skip them by running the following command (in the mahout/core directory):
mvn -Dmaven.test.skip=true package It should give you what you need in the mahout/core/target directory. I tried it with Maven 2.0.10 and it worked. This dosn't work for "mahout/examples" because somehow there is a dependency with core-tests !!! But you'll still need Cygwin if you want to use Hadoop --- En date de : Ven 17.4.09, Jeff Eastman <[email protected]> a écrit : > De: Jeff Eastman <[email protected]> > Objet: Re: Unit Tests Failed > À: [email protected] > Date: Vendredi 17 Avril 2009, 2h44 > I do not believe that the Mahout code > itself requires Cygwin. Hadoop > requires it on Windows boxes so that it can issue e.g. > chmod commands to > a uniform OS interface. Our unit tests utilize Hadoop to > test their > parallel versions and, if Cygwin is not installed, those > tests will fail > and the jar will not be built. You will have the same > problem running > any of the parallel versions on a Windows box without > Cygwin. > > Is there an issue with using Cygwin? > Jeff > > > Niraj wrote: > > I had the same problem. > > Then I got to trying it with cygwin. My errors > came down from 3 to 1 and > > after that I just gave up. > > > > > > > > On Thu, Apr 16, 2009 at 4:33 PM, Túlio <[email protected]> > wrote: > > > > > >> Ok, > >> > >> my question is: Is there anyway to create the .jar > without the Cygwin? (all > >> the exceptions are in parts of the framework i > won't use) > >> > >> Does that mean mahout doesn't have a Windows > version? > >> > >> Sorry for the silly questions again. > >> > >> > >> Túlio wrote: > >> > >>> Hi guys, > >>> > >>> i am trying to compile mahout using Netbeans. > Installed the plugins and > >>> everything seems to work fine and I am able to > compile the whole thing. > >>> > >>> However, some tests have errors, exceptions > that are not correctly > >>> > >> handled > >> > >>> (and this seems to prevent the .jar file to be > created for the Mahout > >>> > >> core > >> > >>> target of the pom file - i am not familiar > with maven :S) > >>> > >>> The tests that are getting errors are: > >>> > >>> Running > org.apache.mahout.ga.watchmaker.MahoutEvaluatorTest > >>> Tests run: 2, Failures: 0, Errors: 2, Skipped: > 0, Time elapsed: 1.093 sec > >>> <<< FAILURE! > >>> > >>> Running > org.apache.mahout.clustering.dirichlet.TestMapReduce > >>> Tests run: 16, Failures: 0, Errors: 4, > Skipped: 0, Time elapsed: 4.266 > >>> > >> sec > >> > >>> <<< FAILURE! > >>> > >>> Running > org.apache.mahout.clustering.kmeans.TestKmeansClustering > >>> Tests run: 5, Failures: 0, Errors: 1, Skipped: > 0, Time elapsed: 1.156 sec > >>> <<< FAILURE! > >>> > >>> Running > org.apache.mahout.clustering.meanshift.TestMeanShift > >>> Tests run: 4, Failures: 0, Errors: 1, Skipped: > 0, Time elapsed: 2.203 sec > >>> <<< FAILURE! > >>> > >>> I am getting the following exception: > >>> > >>> java.io.IOException: Cannot run program > "chmod": CreateProcess error=2, O > >>> sistema não pode encontrar o arquivo > especificado (The system can't find > >>> the specified file) > >>> > >>> Does this have anything to do with the fact > that i am trying to run it on > >>> Windows? > >>> > >>> How do I get it to work (and generate the .jar > file so i can run the > >>> samples)? the .jar file should be in the > mahout\core\build folder after > >>> build, right? > >>> > >>> Sorry for the silly question, i am just trying > to get this to work. We > >>> have a bayesian decision system that using > Netica-J and I am looking for > >>> alternatives. > >>> > >>> > >>> > >>> > >>> > >> -- > >> View this message in context: > >> http://www.nabble.com/Unit-Tests-Failed-tp22753622p23088538.html > >> Sent from the Mahout User List mailing list > archive at Nabble.com. > >> > >> > >> > > > > > >
