Доморощенный не устанавливается - PullRequest
0 голосов
/ 26 апреля 2020

Я перешел с Windows на macOS через несколько дней go. Я хочу установить доморощенный. Я использовал следующую команду

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)

, но я получаю сообщение об ошибке «Отказано в доступе».

==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew

Press RETURN to continue or any other key to abort
==> Downloading and installing Homebrew...
/usr/local/Homebrew/.git/branches/: Permission denied
Failed during: git init -q
==> 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 (or will be during this `install` run).

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

error: could not lock config file .git/config: Permission denied
Failed during: git config --replace-all homebrew.analyticsmessage true
==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh

Я проверил многие другие ответы Stackoverflow и следил за статьями в Интернете, но я не нашел никакого решения.

comptag:~ username$ brew install curl
-bash: /usr/local/bin/brew: No such file or directory

Пожалуйста, предложите мне несколько решений.

1 Ответ

0 голосов
/ 02 мая 2020

Используйте официальную команду, указанную на сайте Homebrew :

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
...