Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.1K
Visualizações
Permission denied error when trying to run postgresql on Homebrew

I ran brew install postgresql:

  1. Then brew services start postgresql

Received Error: Permission denied @ apply2files - /Users/$USER/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

  1. Ran chmod 755 ~/Library/LaunchAgents and cp /usr/local/opt/postgresql/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/ (from https://coreyward.svbtle.com/fixing-homebrew-postgres-installation-on-macos-catalina)

This gave me Error: Permission denied @ rb_sysopen - /Users/$USER/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

  1. I tried various things from this thread https://gist.github.com/irazasyed/7732946 but with no success.

I'm not too familiar with Homebrew and am wondering how to resolve this. Thanks!

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

I'm running on a Macbook Air m1.

When I ran:

brew services start postgresql

I got the following error:

Error: Permission denied @ rb_sysopen - /Users/<username>/Library/LaunchAgents/homebrew.mxcl.postgresql.plist

Instead of doing what you posted I did the following:

sudo chown <username> /Users/<username>/Library/LaunchAgents/

And that made it work. I got the idea from this github thread: https://github.com/Homebrew/homebrew-services/issues/177#issuecomment-450432567

over 4 years ago · Santiago Trujillo Relatório

0

You can run these two commands, it is working for me.

% chmod 755 ~/Library/LaunchAgents
% cp /usr/local/opt/postgresql/homebrew.mxcl.postgresql.plist ~/Library/LaunchAgents/

To read more about what's going on, you can check below link : Source : https://coreyward.svbtle.com/fixing-homebrew-postgres-installation-on-macos-catalina

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda