# Building From Source

**URL:** <https://discuss.elastic.co/t/building-from-source/3222>\
**Category:** Elasticsearch\
**Created:** [August 16, 2010, 10:03am UTC](https://discuss.elastic.co/t/building-from-source/3222 "2010-08-16T10:03:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Truemper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_truemper/32/2781_2.png) [@Daniel\_Truemper](https://discuss.elastic.co/u/Daniel_Truemper)\
**Post date:** [August 16, 2010, 10:03am UTC](https://discuss.elastic.co/t/building-from-source/3222/1 "2010-08-16T10:03:16Z")

</div>

Hi,

I just started to play with Elastic Search. First: great work Shay!

I now tried to build it from source (./gradlew test) but I get compilation errors:

modules/elasticsearch/src/test/java/org/elasticsearch/util/guice/InjectorsTests.java:47: cannot find symbol  
symbol : method getInstancesOf(org.elasticsearch.common.inject.Injector,org.elasticsearch.common.inject.matcher.Matcher\<java.lang.Class\>)  
location: class org.elasticsearch.util.guice.Injectors  
assertThat(Injectors.getInstancesOf(injector,

Any ideas what I am doing wrong? I have to admit that I have not used Gradle and Guice so far, even though I always wanted to 🙂

Thanks,  
Daniel

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 16, 2010, 10:18am UTC](https://discuss.elastic.co/t/building-from-source/3222/2 "2010-08-16T10:18:35Z")

</div>

Strang, I don't get this error... . Can you try and run gradlew clean first?  
If you just want to build elasticsearch, a faster way is to do "gradlew  
release". The distribution will be under build/distribution.

-shay.banon

On Mon, Aug 16, 2010 at 1:03 PM, Daniel Truemper [truemped@googlemail.com](mailto:truemped@googlemail.com)wrote:

> Hi,
> 
> I just started to play with Elastic Search. First: great work Shay!
> 
> I now tried to build it from source (./gradlew test) but I get compilation  
> errors:
> 
> modules/elasticsearch/src/test/java/org/elasticsearch/util/guice/InjectorsTests.java:47:  
> cannot find symbol  
> symbol : method  
> getInstancesOf(org.elasticsearch.common.inject.Injector,org.elasticsearch.common.inject.matcher.Matcher\<java.lang.Class\>)  
> location: class org.elasticsearch.util.guice.Injectors  
> assertThat(Injectors.getInstancesOf(injector,
> 
> Any ideas what I am doing wrong? I have to admit that I have not used  
> Gradle and Guice so far, even though I always wanted to 🙂
> 
> Thanks,  
> Daniel

---

<div class="post-metadata">

**Author:** ![Daniel\_Truemper](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/daniel_truemper/32/2781_2.png) [@Daniel\_Truemper](https://discuss.elastic.co/u/Daniel_Truemper)\
**Post date:** [August 16, 2010, 10:53am UTC](https://discuss.elastic.co/t/building-from-source/3222/3 "2010-08-16T10:53:11Z")

</div>

Am 16.08.2010 um 12:18 schrieb Shay Banon:

> Strang, I don't get this error... . Can you try and run gradlew clean first? If you just want to build elasticsearch, a faster way is to do "gradlew release". The distribution will be under build/distribution.  
> Hm, strange. gradlew clean did the trick but I am unsure what it was. Never mind, works now.

Thanks  
Daniel

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:20am UTC](https://discuss.elastic.co/t/building-from-source/3222/4 "2017-07-06T04:20:41Z")

</div>


