# ./elastic-agent: 2: Syntax error: word unexpected (expecting ")")

**URL:** <https://discuss.elastic.co/t/elastic-agent-2-syntax-error-word-unexpected-expecting/351589>\
**Category:** Elasticsearch\
**Created:** [January 23, 2024, 4:23am UTC](https://discuss.elastic.co/t/elastic-agent-2-syntax-error-word-unexpected-expecting/351589 "2024-01-23T04:23:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![axiescholar](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@axiescholar](https://discuss.elastic.co/u/axiescholar)\
**Post date:** [January 23, 2024, 4:23am UTC](https://discuss.elastic.co/t/elastic-agent-2-syntax-error-word-unexpected-expecting/351589/1 "2024-01-23T04:23:02Z")

</div>

i am getting this error when i am installing agent on kali linux.  
./elastic-agent: 1: ./elastic-agent: 1: ELF: not found  
O@8: not found  
./elastic-agent: 2: Syntax error: word unexpected (expecting ")")  
i am using a VM on my m1 mac so not sure if it is not compatible but i was just copying the instructions and it is not installing elastic agent. really appreciate the help.

---

<div class="post-metadata">

**Author:** ![strawgate](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/strawgate/32/131008_2.png) [@strawgate](https://discuss.elastic.co/u/strawgate)\
**Post date:** [January 23, 2024, 4:44am UTC](https://discuss.elastic.co/t/elastic-agent-2-syntax-error-word-unexpected-expecting/351589/2 "2024-01-23T04:44:31Z")

</div>

> [@axiescholar](#):
>
> ELF: not found

Which elastic agent did you download? What's the name of the file you downloaded?

For a vm on an m1 Mac you'll need the aarch64 agent download

---

<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:** [February 20, 2024, 4:44am UTC](https://discuss.elastic.co/t/elastic-agent-2-syntax-error-word-unexpected-expecting/351589/3 "2024-02-20T04:44:48Z")

</div>

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