Tôi đã cố gắng để homebrew hoạt động tốt, nhưng dường như mọi thứ bên trong /usr/local
đều không thể ghi được, và mọi thứ sụp đổ.
Nó cứ bảo tôi đệ quy chown
/usr/local
, và tôi đã thử nó. Hoạt động bị từ chối, vì vậy tôi sudo'd nó. Nó dường như hoạt động, nhưng với một sự im lặng kỳ lạ mà tôi nghe thấy được coi là lịch sự trong Unix. Thật không may, bất kỳ nỗ lực thành công nào brew update
đáp ứng với cùng một lỗi caophony.
Tôi chạy lại lệnh với -v
và có vẻ như hoạt động không được phép cho bất cứ điều gì bên trong.
Nhiều như câu trả lời có lẽ là "học UNIX" Tôi chỉ đang cố gắng tuân thủ một số yêu cầu công việc ở đây để xem hướng dẫn về Ruby, vì vậy đó là một vài bước ở trên nơi tôi hiện đang ở.
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 doctor
cho bạn biết bất cứ điều gì hữu ích? Đăng đầu ra ở đây.