У меня есть MacBook Pro 2016 (с сенсорной панелью) и Mac OS Sierra (10.12.3). Я недавно установил Homebrew (v1.1.9) и запустил brew install gcc49
. Оказывается, чтобы установить все зависимости хорошо, но как только он попадает в GCC, я получаюРазрешение на домашнее использование запрещено в файле У меня есть права доступа rwx
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/[email protected]
Оригинал разрешения после скаченные Homebrew:
-rw-r--r-- 1 <me> <company_domain> 86M Jun 26 2015 /Users/<me>/Library/Caches/Homebrew/[email protected]
Я попытался установить в 755
и группы admin
, но нет удачи:
-rwxr-xr-x 1 <me> admin 86M Jun 26 2015 /Users/<me>/Library/Caches/Homebrew/[email protected]
> brew install gcc49
Updating Homebrew...
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
Already downloaded: /Users/<me>/Library/Caches/Homebrew/[email protected]
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/[email protected]
Я тогда chown
редактор каталога быть группой admin
вместо домена компании , У него уже были разрешения 775
. Еще не повезло.
Я видел несколько сообщений, где людям приходилось кататься chown
, чтобы сделать доморощенный счастливым, но я не вижу разрешений на данный файл или каталог.
brew doctor
сообщает о некоторых неожиданных dylib, заголовках и .pc
файлах. Я не уверен, пришли ли они из образа моей компании Mac OS.
Могу ли я пропустить что-то очевидное? Я ценю любую помощь.
Здесь все начальная установка вывода:
> brew install gcc49
==> Installing dependencies for [email protected]: [email protected], [email protected], [email protected], [email protected], cloog
==> Installing [email protected] dependency: [email protected]
==> Downloading https://homebrew.bintray.com/bottles/[email protected]
######################################################################## 100.0%
==> Pouring [email protected]
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/[email protected]/lib
CPPFLAGS: -I/usr/local/opt/[email protected]/include
==> Summary
/usr/local/Cellar/[email protected]/4.3.2: 20 files, 2.4M
==> Installing [email protected] dependency: [email protected]
==> Downloading https://homebrew.bintray.com/bottles/[email protected]
######################################################################## 100.0%
==> Pouring [email protected]
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/[email protected]/lib
CPPFLAGS: -I/usr/local/opt/[email protected]/include
==> Summary
/usr/local/Cellar/[email protected]/2.4.2: 25 files, 2.7M
==> Installing [email protected] dependency: [email protected]
==> Downloading https://homebrew.bintray.com/bottles/[email protected]
######################################################################## 100.0%
==> Pouring [email protected]
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/[email protected]/lib
CPPFLAGS: -I/usr/local/opt/[email protected]/include
==> Summary
/usr/local/Cellar/[email protected]/0.8.1: 12 files, 273.8K
==> Installing [email protected] dependency: [email protected]
==> Downloading https://homebrew.bintray.com/bottles/[email protected]
######################################################################## 100.0%
==> Pouring [email protected]
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
This is an alternate version of another formula.
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/[email protected]/lib
CPPFLAGS: -I/usr/local/opt/[email protected]/include
==> Summary
/usr/local/Cellar/[email protected]/0.12.2: 57 files, 2.9M
==> Installing [email protected] dependency: cloog
==> Downloading https://homebrew.bintray.com/bottles/cloog-0.18.4_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cloog-0.18.4_1.sierra.bottle.tar.gz
/usr/local/Cellar/cloog/0.18.4_1: 35 files, 442.4K
==> Installing [email protected]
==> Using the sandbox
==> Downloading https://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
==> Downloading from http://mirror.easthsia.com/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2
######################################################################## 100.0%
Error: Permission denied - /Users/<me>/Library/Caches/Homebrew/[email protected]
Включена или выключена защита 'SIP'? (из терминала 'csrutil status') –
Бах, да! Нужно ли его постоянно отключать? Или я должен? Я недостаточно разбираюсь в безопасности, чтобы знать, насколько это помогает. –
Я думаю, вам просто нужно отключить его, пока вы устанавливаете что-либо в каталоги, принадлежащие root. После того, как вы установили все, что должно быть там, возможно, безопасно снова включить его. –