You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Adam Estrada <es...@gmail.com> on 2011/01/24 03:31:46 UTC

[Building] Solr4.0 on Windows

All,

I am having problems building Solr trunk on my windows 7 machine. I
get the following errors...

BUILD FAILED
C:\Apache\Solr-Nightly\build.xml:23: The following error occurred while executin
g this line:
C:\Apache\Solr-Nightly\lucene\common-build.xml:529:
The following error occurred while executing this line:
C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
The following error occurred while executing this line:
C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
The following error occurred while executing this line:
C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
The following error occurred while executing this line:
C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
The following error occurred while executing this line:
C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!

I am full admin on my machine and made sure that I was running the
build as admin but it still fails. I just tired the same thing on the
Mac and ran it as sudo and it built perfectly. Any ideas?

Thanks,
Adam

Re: [Building] Solr4.0 on Windows

Posted by Erick Erickson <er...@gmail.com>.
I think I just ran into the same thing, see: SOLR-2303.

The short form is it's some wonky pathing issues. I faked a fix,
but it appears more complex than my simple fix would handle,
so I have to drop it for a while.

Best
Erick

On Sun, Jan 23, 2011 at 9:31 PM, Adam Estrada <estrada.adam.groups@gmail.com
> wrote:

> All,
>
> I am having problems building Solr trunk on my windows 7 machine. I
> get the following errors...
>
> BUILD FAILED
> C:\Apache\Solr-Nightly\build.xml:23: The following error occurred while
> executin
> g this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:529:
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
>
> I am full admin on my machine and made sure that I was running the
> build as admin but it still fails. I just tired the same thing on the
> Mac and ran it as sudo and it built perfectly. Any ideas?
>
> Thanks,
> Adam
>

Re: [Building] Solr4.0 on Windows

Posted by Adam Estrada <es...@gmail.com>.
So I did manage to get this to build...

ant compile does it.

Didn't it used to use straight Maven? It's pretty hard to keep track of what's what...Anyway, is there any way/reason all the cool Lucene jars aren't getting copied in to $SOLR_HOME/lib?  That would really help and save a lot of time. Where in the build script would I need to change this?

Thanks,
Adam

On Jan 23, 2011, at 9:31 PM, Adam Estrada wrote:

> All,
> 
> I am having problems building Solr trunk on my windows 7 machine. I
> get the following errors...
> 
> BUILD FAILED
> C:\Apache\Solr-Nightly\build.xml:23: The following error occurred while executin
> g this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:529:
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> The following error occurred while executing this line:
> C:\Apache\Solr-Nightly\lucene\common-build.xml:511: Tests failed!
> 
> I am full admin on my machine and made sure that I was running the
> build as admin but it still fails. I just tired the same thing on the
> Mac and ran it as sudo and it built perfectly. Any ideas?
> 
> Thanks,
> Adam