Can't get rust-analyzer with lsp-config

Original post here: Can't get rust-analyzer working · Issue #1164 · neovim/nvim-lspconfig · GitHub. Was directed here.

The above is quite detailed but I’ll post a summary here.

I installed rust-analyzer using the instructions here User Manual. Upon opening a rust file I saw cmd ["rust-analyzer"] is not executable. Ran chmod a+x /PATH/TO/rust-analyzer. Re-opened the rust project and saw this new error.

Error detected while processing FileType Autocommands for "rust":
E5108: Error executing lua ...llar/neovim/0.5.0/share/nvim/runtime/lua/vim/lsp/rpc.lua:384: start `rust-analyzer` faile
d: Unknown system error -86: Unknown system error -86

No idea why.

:man_facepalming: Figured it out.

  1. I had installed the version for Apple M1 and not Apple with Intels.
  2. After doing that I had to tell the Apple security stuff to trust rust-analyzer.

Hi, I just bought a mac and would like to get details on how you fix this.
Does this mean I need the homebrew for intel version?