# Installing elasticsearch on red hat linux - error command not found

**URL:** <https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289>\
**Category:** Elasticsearch\
**Created:** [March 11, 2014, 1:30pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289 "2014-03-11T13:30:51Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Preeti\_Jain](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Preeti\_Jain](https://discuss.elastic.co/u/Preeti_Jain)\
**Post date:** [March 11, 2014, 1:30pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/1 "2014-03-11T13:30:51Z")

</div>

Hi all,

I'm installing elasticsearch version 1.0.1 on red hat linux.  
I have placed elastic search in directory /opt so the path till bin looks  
like /opt/elasticsearch-1.0.1/bin  
when I'm trying to start elasticsearch as  
$ bin/elasticsearch -f  
I get error message elasticsearch: command not found  
Tried changing the permission on elasticsearch file, after that the error  
changed to bin/elasticsearch: line 116: syntax error: unexpected end of file  
I also tried using the service wrapper but facing the same issue

JAVA\_HOME and ES\_HOME env variables are properly set

could anyone help?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![sumit\_gupta\_sgt](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sumit\_gupta\_sgt](https://discuss.elastic.co/u/sumit_gupta_sgt)\
**Post date:** [March 11, 2014, 6:20pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/2 "2014-03-11T18:20:48Z")

</div>

Hi,

Check this one may be help.

[https://gist.github.com/wingdspur/2026107](https://gist.github.com/wingdspur/2026107)

Thanks & Regards,  
Sumit Gupta

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [March 11, 2014, 7:15pm UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/3 "2014-03-11T19:15:40Z")

</div>

How did you install Elasticsearch? Did you use a download [1] or some other  
binary distribution such as RPM?

If by chance, you simply cloned the Github repository, that is not the  
correct way to install Elasticsearch. Use a downloadable version instead.

[1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/download)

--  
Ivan

On Tue, Mar 11, 2014 at 6:30 AM, Preeti Jain [itspreeti@gmail.com](mailto:itspreeti@gmail.com) wrote:

> Hi all,
> 
> I'm installing elasticsearch version 1.0.1 on red hat linux.  
> I have placed Elasticsearch in directory /opt so the path till bin looks  
> like /opt/elasticsearch-1.0.1/bin  
> when I'm trying to start elasticsearch as  
> $ bin/elasticsearch -f  
> I get error message elasticsearch: command not found  
> Tried changing the permission on elasticsearch file, after that the error  
> changed to bin/elasticsearch: line 116: syntax error: unexpected end of  
> file  
> I also tried using the service wrapper but facing the same issue
> 
> JAVA\_HOME and ES\_HOME env variables are properly set
> 
> could anyone help?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCbrGHM%2BYiYCuW1kQX2azf4\_NMmEcMyDw9NfMKsmfvb0Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQCbrGHM%2BYiYCuW1kQX2azf4_NMmEcMyDw9NfMKsmfvb0Q%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Preeti\_Jain](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@Preeti\_Jain](https://discuss.elastic.co/u/Preeti_Jain)\
**Post date:** [March 12, 2014, 3:35am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/4 "2014-03-12T03:35:49Z")

</div>

I downloaded it properly from the website.

Regards,  
Preeti

On Wednesday, March 12, 2014 12:45:40 AM UTC+5:30, Ivan Brusic wrote:

> How did you install Elasticsearch? Did you use a download [1] or some  
> other binary distribution such as RPM?
> 
> If by chance, you simply cloned the Github repository, that is not the  
> correct way to install Elasticsearch. Use a downloadable version instead.
> 
> [1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/download)
> 
> --  
> Ivan
> 
> On Tue, Mar 11, 2014 at 6:30 AM, Preeti Jain \<[itsp...@gmail.com](mailto:itsp...@gmail.com)\<javascript:\>
> 
> > wrote:
> 
> > Hi all,
> > 
> > I'm installing elasticsearch version 1.0.1 on red hat linux.  
> > I have placed Elasticsearch in directory /opt so the path till bin looks  
> > like /opt/elasticsearch-1.0.1/bin  
> > when I'm trying to start elasticsearch as  
> > $ bin/elasticsearch -f  
> > I get error message elasticsearch: command not found  
> > Tried changing the permission on elasticsearch file, after that the error  
> > changed to bin/elasticsearch: line 116: syntax error: unexpected end of  
> > file  
> > I also tried using the service wrapper but facing the same issue
> > 
> > JAVA\_HOME and ES\_HOME env variables are properly set
> > 
> > could anyone help?
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15186ffd-f35e-41ed-ae2c-445c6efc3572%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15186ffd-f35e-41ed-ae2c-445c6efc3572%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 12, 2014, 3:39am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/5 "2014-03-12T03:39:08Z")

</div>

Use the rpm, not the zip/tar.gz.

Otherwise run /opt/elasticsearch-1.0.1/bin/elasticsearch -f

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

On 12 March 2014 14:35, Preeti Jain [itspreeti@gmail.com](mailto:itspreeti@gmail.com) wrote:

> I downloaded it properly from the website.
> 
> Regards,  
> Preeti
> 
> On Wednesday, March 12, 2014 12:45:40 AM UTC+5:30, Ivan Brusic wrote:
> 
> > How did you install Elasticsearch? Did you use a download [1] or some  
> > other binary distribution such as RPM?
> > 
> > If by chance, you simply cloned the Github repository, that is not the  
> > correct way to install Elasticsearch. Use a downloadable version instead.
> > 
> > [1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/download)
> > 
> > --  
> > Ivan
> > 
> > On Tue, Mar 11, 2014 at 6:30 AM, Preeti Jain [itsp...@gmail.com](mailto:itsp...@gmail.com) wrote:
> > 
> > > Hi all,
> > > 
> > > I'm installing elasticsearch version 1.0.1 on red hat linux.  
> > > I have placed Elasticsearch in directory /opt so the path till bin  
> > > looks like /opt/elasticsearch-1.0.1/bin  
> > > when I'm trying to start elasticsearch as  
> > > $ bin/elasticsearch -f  
> > > I get error message elasticsearch: command not found  
> > > Tried changing the permission on elasticsearch file, after that the  
> > > error changed to bin/elasticsearch: line 116: syntax error: unexpected  
> > > end of file  
> > > I also tried using the service wrapper but facing the same issue
> > > 
> > > JAVA\_HOME and ES\_HOME env variables are properly set
> > > 
> > > could anyone help?
> > > 
> > > --  
> > > You received this message because you are subscribed to the Google  
> > > Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send  
> > > an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/](https://groups.google.com/d/)  
> > > msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%  
> > > [40googlegroups.com](http://40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > > .  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/15186ffd-f35e-41ed-ae2c-445c6efc3572%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15186ffd-f35e-41ed-ae2c-445c6efc3572%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/15186ffd-f35e-41ed-ae2c-445c6efc3572%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/15186ffd-f35e-41ed-ae2c-445c6efc3572%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624ZCc5ejvHxLW-Y7nM%2BqXZ%3D\_wfH9T7vs6qJveVfS38EhSg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZCc5ejvHxLW-Y7nM%2BqXZ%3D_wfH9T7vs6qJveVfS38EhSg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 12, 2014, 6:36am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/6 "2014-03-12T06:36:34Z")

</div>

Without -f which is no more needed on 1.0 🙂

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 12 mars 2014 à 04:39, Mark Walkom [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com) a écrit :

Use the rpm, not the zip/tar.gz.

Otherwise run /opt/elasticsearch-1.0.1/bin/elasticsearch -f

Regards,  
Mark Walkom

Infrastructure Engineer  
Campaign Monitor  
email: [markw@campaignmonitor.com](mailto:markw@campaignmonitor.com)  
web: [www.campaignmonitor.com](http://www.campaignmonitor.com)

> On 12 March 2014 14:35, Preeti Jain [itspreeti@gmail.com](mailto:itspreeti@gmail.com) wrote:  
> I downloaded it properly from the website.
> 
> Regards,  
> Preeti
> 
> > On Wednesday, March 12, 2014 12:45:40 AM UTC+5:30, Ivan Brusic wrote:  
> > How did you install Elasticsearch? Did you use a download [1] or some other binary distribution such as RPM?
> > 
> > If by chance, you simply cloned the Github repository, that is not the correct way to install Elasticsearch. Use a downloadable version instead.
> > 
> > [1] [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/download)
> > 
> > --  
> > Ivan
> > 
> > > On Tue, Mar 11, 2014 at 6:30 AM, Preeti Jain [itsp...@gmail.com](mailto:itsp...@gmail.com) wrote:  
> > > Hi all,
> > > 
> > > I'm installing elasticsearch version 1.0.1 on red hat linux.  
> > > I have placed Elasticsearch in directory /opt so the path till bin looks like /opt/elasticsearch-1.0.1/bin  
> > > when I'm trying to start elasticsearch as  
> > > $ bin/elasticsearch -f  
> > > I get error message elasticsearch: command not found  
> > > Tried changing the permission on elasticsearch file, after that the error changed to bin/elasticsearch: line 116: syntax error: unexpected end of file  
> > > I also tried using the service wrapper but facing the same issue
> > > 
> > > JAVA\_HOME and ES\_HOME env variables are properly set
> > > 
> > > ## could anyone help?
> > > 
> > > You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> > > To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com).  
> > > To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com).  
> > > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15186ffd-f35e-41ed-ae2c-445c6efc3572%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15186ffd-f35e-41ed-ae2c-445c6efc3572%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEM624ZCc5ejvHxLW-Y7nM%2BqXZ%3D\_wfH9T7vs6qJveVfS38EhSg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEM624ZCc5ejvHxLW-Y7nM%2BqXZ%3D_wfH9T7vs6qJveVfS38EhSg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/DCB293A2-B947-4AEC-BFF4-5970DCF663B9%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/DCB293A2-B947-4AEC-BFF4-5970DCF663B9%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [March 12, 2014, 8:43am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/7 "2014-03-12T08:43:11Z")

</div>

Maybe you installed and unpacked the zip in an uncommon way, and the result  
has Windows line feeds and/or wrong permissions?

Use tar.gz on RHEL. It works here. Also service wrapper, it works  
flawlessly.

Do not forget to install Oracle 7 Java.

Jörg

On Tue, Mar 11, 2014 at 2:30 PM, Preeti Jain [itspreeti@gmail.com](mailto:itspreeti@gmail.com) wrote:

> Hi all,
> 
> I'm installing elasticsearch version 1.0.1 on red hat linux.  
> I have placed Elasticsearch in directory /opt so the path till bin looks  
> like /opt/elasticsearch-1.0.1/bin  
> when I'm trying to start elasticsearch as  
> $ bin/elasticsearch -f  
> I get error message elasticsearch: command not found  
> Tried changing the permission on elasticsearch file, after that the error  
> changed to bin/elasticsearch: line 116: syntax error: unexpected end of  
> file  
> I also tried using the service wrapper but facing the same issue
> 
> JAVA\_HOME and ES\_HOME env variables are properly set
> 
> could anyone help?
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b2291df5-c407-4e4a-ac61-a2aba7795dc4%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHH88csGdG120LWPoBLfD4E%2BWuiCNhPGNWvONhwNSHraw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoHH88csGdG120LWPoBLfD4E%2BWuiCNhPGNWvONhwNSHraw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Prashant\_Pal](https://avatars.discourse-cdn.com/v4/letter/p/b77776/32.png) [@Prashant\_Pal](https://discuss.elastic.co/u/Prashant_Pal)\
**Post date:** [March 12, 2014, 9:59am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/8 "2014-03-12T09:59:35Z")

</div>

If you have copied the files from windows to linux and then executing ES.  
Then try dos2unix elasticseacrh and then run ES

---

<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, 1:43am UTC](https://discuss.elastic.co/t/installing-elasticsearch-on-red-hat-linux-error-command-not-found/16289/9 "2017-07-06T01:43:54Z")

</div>


