# Elastic search + workplace search implementation on linux server

**URL:** <https://discuss.elastic.co/t/elastic-search-workplace-search-implementation-on-linux-server/228308>\
**Category:** Elasticsearch\
**Created:** [April 16, 2020, 11:37am UTC](https://discuss.elastic.co/t/elastic-search-workplace-search-implementation-on-linux-server/228308 "2020-04-16T11:37:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anchal\_kalra](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anchal_kalra/32/56383_2.png) [@anchal\_kalra](https://discuss.elastic.co/u/anchal_kalra)\
**Post date:** [April 16, 2020, 11:37am UTC](https://discuss.elastic.co/t/elastic-search-workplace-search-implementation-on-linux-server/228308/1 "2020-04-16T11:37:18Z")

</div>

We are trying to implement elastic workplace search on a linux server referring the link:  
[https://www.elastic.co/downloads/enterprise-search](https://www.elastic.co/downloads/enterprise-search)

The Red Hat linux server is a restricted one and we can't directly download anything in it.  
So, we downloaded linux elastic search 7.6.0 and enterprise search 7.6.0 in our local windows system.  
Unzipped those tar files and transferred to linux server.

But while executing bin/elasticsearch getting error like

```auto
[admin@VICTCOGHZ03 elasticsearch-7.6.0]$ ./bin/elasticsearch -f
./bin/elasticsearch-env: line 2: $'\r': command not found
: invalid option namenv: line 3: set: pipefail

```

Java \_Home is set in the server

```auto
[admin@VICTCOGHZ03 ~]$ echo $JAVA_HOME
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/jre/bin/java

```

Also tried out to remove any windows based spaces in the file.

```auto
[admin@VICTCOGHZ03 bin]$ sed -i -e 's/\r$//' elasticsearch

```

Any pointers on how configuration changes can be made to make it work as well as workplace search will be helpful

---

<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:** [May 14, 2020, 11:37am UTC](https://discuss.elastic.co/t/elastic-search-workplace-search-implementation-on-linux-server/228308/2 "2020-05-14T11:37:24Z")

</div>

Closed on May 14, 2020, 11:37am UTC

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