1
resposta

[Dúvida] Não estou conseguindo instalar o MySQL no macOS

renanrodrigues@MacBook-Air-de-Renan ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ==> Checking for sudo access (which may request your password)... Password: ==> This script will install: /opt/homebrew/bin/brew /opt/homebrew/share/doc/homebrew /opt/homebrew/share/man/man1/brew.1 /opt/homebrew/share/zsh/site-functions/brew /opt/homebrew/etc/bashcompletion.d/brew /opt/homebrew

Press RETURN/ENTER to continue or any other key to abort: ==> /usr/bin/sudo /usr/sbin/chown -R renanrodrigues:admin /opt/homebrew ==> Downloading and installing Homebrew... HEAD is now at 344d32bf7 Merge pull request #14368 from Kentzo/fix-cask-backup Updated 1 tap (homebrew/core). Warning: /opt/homebrew/bin is not in your PATH. Instructions on how to configure your shell for Homebrew can be found in the 'Next steps' section below. ==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations

==> Next steps:

  • Run these three commands in your terminal to add Homebrew to your PATH: echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/renanrodrigues/.zprofile echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/renanrodrigues/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)"
  • Run brew help to get started
  • Further documentation: https://docs.brew.sh

renanrodrigues@MacBook-Air-de-Renan ~ % brew install mysql zsh: command not found: brew renanrodrigues@MacBook-Air-de-Renan ~ %

1 resposta

Oioi Renan! Tudo bem?

Aparentemente, você precisa adicionar o homebrew ao seu path, para que ele seja reconhecido como um comando. Tenta rodar esses três comandos:

  1. echo '# Set PATH, MANPATH, etc., for Homebrew.' >> /Users/renanrodrigues/.zprofile
  2. echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/renanrodrigues/.zprofile
  3. eval "$(/opt/homebrew/bin/brew shellenv)"

Depois, tente executar o comando da instalação do MySQL: brew install mysql zsh.

Acredito que seguindo esses passos, dará tudo certo! Qualquer coisa, estou disponível.

Abraços e bons estudos!

Caso este post tenha lhe ajudado, por favor, marcar como solucionado ✓. Bons Estudos!

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software