# Can't install Elastic Agent on MacOS Ventura (13.3.1) - Symlink

**URL:** <https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665>\
**Category:** Elastic Security\
**Created:** [April 24, 2023, 2:22pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665 "2023-04-24T14:22:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)\
**Post date:** [April 24, 2023, 2:22pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665/1 "2023-04-24T14:22:31Z")

</div>

Hey guys,

I can't install elastic agent on my new MacBook running MacOS Ventura 13.3.1. Installing I get the following message:

```auto
martin@Martins-MacBook-Pro-14 elastic-agent-8.7.0-darwin-aarch64 % sudo ./elastic-agent install --url=https://10.20.1.6:8220 --enrollment-token=VE...XX== --insecure
Elastic Agent will be installed at /Library/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Y

Error: failed to create elastic-agent symlink (/usr/local/bin/elastic-agent): symlink /Library/Elastic/Agent/elastic-agent /usr/local/bin/elastic-agent: no such file or directory
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.7/fleet-troubleshooting.html

```

And yes the Terminal Application has full disk access:

 ![Screenshot 2023-04-24 at 16.21.13](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b9239399f19bb4a8665d033c85d841b33cc5e659.png)

I am running ELK stack on version 8.5.2 (Standalone).  
I tried installing _elastic-agent-8.5.2-darwin-aarch64_ and also _elastic-agent-8.7.0-darwin-aarch64_ (newest, see above) with the same result.

Can anybody help me?

---

<div class="post-metadata">

**Author:** ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)\
**Post date:** [April 27, 2023, 4:15pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665/2 "2023-04-27T16:15:20Z")

</div>

Anyone?

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 27, 2023, 6:11pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665/3 "2023-04-27T18:11:20Z")

</div>

Did you try to install a previous version?

Ahh I see you did...

Perhaps you are half-installed...

Was it the same error with 8.5.2?

---

<div class="post-metadata">

**Author:** ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)\
**Post date:** [April 27, 2023, 6:59pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665/4 "2023-04-27T18:59:56Z")

</div>

Yes exactly the same ☹

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 27, 2023, 7:12pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665/5 "2023-04-27T19:12:01Z")

</div>

So I would try to uninstall it first...

`/Library/Elastic/Agent/elastic-agent uninstall`

Unfortunately, this is one of the few things I can not test on my mac... as I work for Elastic and the Agent is installed already on my Mac as a managed Asset (we run it as AV / AM etc)

And this is an M1/2 Mac?

---

<div class="post-metadata">

**Author:** ![maof97](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maof97/32/101433_2.png) [@maof97](https://discuss.elastic.co/u/maof97)\
**Post date:** [April 27, 2023, 8:09pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665/6 "2023-04-27T20:09:06Z")

</div>

Ok done. What now?

Its a M2 Pro MacBook

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [April 27, 2023, 9:44pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665/7 "2023-04-27T21:44:29Z")

</div>

> [@maof97](#):
>
> What now?

try to re-install

I had someone before that needed to try to install / uninstall each of the versions he tried... once it got contaminated...

We have 1000s of agents installed on Macs ... so it does work I know that does not help you a lot.

---

<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 25, 2023, 9:45pm UTC](https://discuss.elastic.co/t/cant-install-elastic-agent-on-macos-ventura-13-3-1-symlink/330665/8 "2023-05-25T21:45:17Z")

</div>

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