J'ai essayé de faire fonctionner homebrew correctement, mais il semble que tout ce qui est à l'intérieur /usr/local
n'est pas inscriptible, et tout s'écroule.
Il continue à me dire de récursivement chown
/usr/local
et j'ai essayé. Opération refusée, alors j'ai fait un sudo. Cela a semblé fonctionner, mais avec un silence sinistre qui, d'après ce que j'ai entendu, est considéré comme poli sous Unix. Malheureusement, toutes les tentatives successives de brew update
rencontrent la même cacophonie d'erreurs.
J'ai réexécuté la commande avec -v
et il semble que l'opération ne soit pas autorisée pour quoi que ce soit à l'intérieur.
Bien que la réponse soit probablement "apprendre UNIX", j'essaie juste de me conformer à certaines exigences professionnelles ici pour un tutoriel sur Ruby, donc c'est un peu plus que ce que je suis actuellement.
brew doctor
:
Warning: /usr/local/Frameworks isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/Frameworks
Warning: /usr/local/Cellar isn't writable.
You should `chown` /usr/local/Cellar
Warning: /usr/local/etc isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/etc
Warning: /usr/local/include isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/include
Warning: /usr/local/lib isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/lib
Warning: /usr/local/lib/pkgconfig isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/lib/pkgconfig
Warning: /usr/local/opt isn't writable.
You should `chown` /usr/local/opt
Warning: /usr/local/share isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/share
Warning: Some directories in /usr/local/share/man aren't writable.
This can happen if you "sudo make install" software that isn't managed
by Homebrew. If a brew tries to add locale information to one of these
directories, then the install will fail during the link step.
You should probably `chown` them:
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man3
/usr/local/share/man/man5
/usr/local/share/man/man7
/usr/local/share/man/man8
Warning: /usr/local/var isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/var
0 votes
Fait
brew doctor
vous a dit quelque chose d'utile ? Postez le résultat ici.0 votes
@IanC. C'est une longue liste de tout ce qui est lié à la brasserie et qui n'est pas accessible en écriture. Y a-t-il un utilitaire pastebin pour stackexchange ? Il y a un beaucoup d'elle.
0 votes
Eh bien, c'est étrange. Il y en a beaucoup moins maintenant qu'avant.
0 votes
Juste pour info : je viens d'exécuter
brew update
et découvert que "Homebrew n'a plus besoin d'avoir la propriété de /usr/local". Plus d'informations dans ce question . Évidemment, pour arriver à ce point, vous devez encore mettre à jour temporairement les permissions sur /usr/local :)0 votes
Quelqu'un peut m'expliquer pourquoi Mac s'est débarrassé de nos permissions ?