Saya sudah mencoba untuk membuat homebrew bekerja dengan baik, tetapi tampaknya semuanya di dalam /usr/local
tidak dapat ditulis, dan semuanya jatuh.
Itu terus mengatakan kepada saya untuk secara rekursif chown
/usr/local
, dan saya mencobanya. Operasi ditolak, jadi saya sudo'd itu. Tampaknya berhasil, tetapi dengan keheningan yang menakutkan yang saya dengar dianggap sopan di Unix. Sayangnya, setiap upaya yang berhasil brew update
bertemu dengan hiruk pikuk kesalahan yang sama.
Saya mengulangi perintah dengan -v
dan sepertinya operasi tidak diizinkan untuk apa pun di dalamnya.
Sebanyak jawabannya mungkin "belajar UNIX" Saya hanya mencoba untuk memenuhi beberapa persyaratan pekerjaan di sini untuk tutorial tentang Ruby, jadi itu beberapa langkah di atas di mana saya saat ini berada.
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
brew update
dan menemukan bahwa "Homebrew tidak perlu lagi memiliki kepemilikan / usr / lokal." Info lebih lanjut dalam pertanyaan ini . Jelas untuk sampai ke titik itu Anda masih perlu untuk sementara memperbarui izin pada / usr / local :)
brew doctor
memberi tahu Anda sesuatu yang bermanfaat? Poskan hasilnya di sini.