# How to run source builded elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to-run-source-builded-elasticsearch/122297>\
**Category:** Elasticsearch\
**Created:** [March 2, 2018, 4:47pm UTC](https://discuss.elastic.co/t/how-to-run-source-builded-elasticsearch/122297 "2018-03-02T16:47:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mover](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mover](https://discuss.elastic.co/u/mover)\
**Post date:** [March 2, 2018, 4:47pm UTC](https://discuss.elastic.co/t/how-to-run-source-builded-elasticsearch/122297/1 "2018-03-02T16:47:25Z")

</div>

i checkout out elasticsearch sources with version v2.4.6, then compile sources using command:

mvn clean install -Dcheckstyle.skip=true -DskipTests

then i execute ./bin/elasticsearch, but failed, follow is the error infomation:

@MacBook-Pro-2:~/Documents/idea\_java/elasticsearch/distribution/tar/target/bin$ ./elasticsearch  
Exception in thread "main" ElasticsearchException[Failed to load logging configuration]; nested: NoSuchFileException[/Users/yangshengbing/Documents/idea\_java/elasticsearch/distribution/tar/target/config];  
Likely root cause: java.nio.file.NoSuchFileException: /Users/yangshengbing/Documents/idea\_java/elasticsearch/distribution/tar/target/config  
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)  
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)  
at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)  
at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)  
at java.nio.file.Files.readAttributes(Files.java:1737)  
at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)  
at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)  
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)  
at java.nio.file.Files.walkFileTree(Files.java:2662)  
at org.elasticsearch.common.logging.log4j.LogConfigurator.resolveConfig(LogConfigurator.java:142)  
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:103)  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:259)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:45)  
Refer to the log for complete error details.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 2, 2018, 5:04pm UTC](https://discuss.elastic.co/t/how-to-run-source-builded-elasticsearch/122297/2 "2018-03-02T17:04:13Z")

</div>

Once you have the package version like the `tar`, you need to "install" it, ie untar the file in another dir, then launch.

May I ask why you'd like to compile an old version which will not change in the future?

---

<div class="post-metadata">

**Author:** ![mover](https://avatars.discourse-cdn.com/v4/letter/m/f14d63/32.png) [@mover](https://discuss.elastic.co/u/mover)\
**Post date:** [March 3, 2018, 12:48pm UTC](https://discuss.elastic.co/t/how-to-run-source-builded-elasticsearch/122297/3 "2018-03-03T12:48:40Z")

</div>

after version 5.X, elasticsearch uses gradle as the build managemeng tool. i checked out version 6.0.0 and version v6.2.4, both build failed because can not download some dependencies. i did not ever use gradle, but i am familier with maven, and v2.4.6 build success.

yes, i execute the ./bin/elasticsearch start program is undown untared dir . according the error infomation, it seems like that eslapsed config dir and config files?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 3, 2018, 1:50pm UTC](https://discuss.elastic.co/t/how-to-run-source-builded-elasticsearch/122297/4 "2018-03-03T13:50:33Z")

</div>

But why not just downloading the version from [elastic.co](http://elastic.co) website?

---

<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:** [March 31, 2018, 1:50pm UTC](https://discuss.elastic.co/t/how-to-run-source-builded-elasticsearch/122297/5 "2018-03-31T13:50:43Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
