높은 시에라로 업데이트하기 전에 모든 것이 잘 작동 했으므로 지킬이 실행되지 않습니다. jekyll을 제거하고 brew를 사용하여 루비를 업데이트했는지 확인합니다 (루비 2.4.2_1가 이미 설치되어 있다고 말함). 그리고 나서 지킬을 다시 설치하려고했습니다. 이것은 명령 행에서 얻은 오류입니다.OS X에서 지킬을 설치할 때 쓰기 권한 높은 시에라 10.13.1
Last login: Sat Dec 9 20:15:25 on ttys000
Wills-MBP:~ Will$ sudo gem uninstall jekyll
Password:
Gem 'jekyll' is not installed
Wills-MBP:~ Will$ gem install bundle
Fetching: bundle-0.0.1.gem (100%)
Successfully installed bundle-0.0.1
Parsing documentation for bundle-0.0.1
Installing ri documentation for bundle-0.0.1
Done installing documentation for bundle after 0 seconds
1 gem installed
Wills-MBP:~ Will$ gem install jekyll
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_sysopen -
/Library/Ruby/Gems/2.3.0/gems/jekyll-3.6.2/.rubocop.yml
Wills-MBP:~ Will$ sudo gem install jekyll
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
Wills-MBP:~ Will$ sudo gem install jekyll bundler
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
Wills-MBP:~ Will$ gem update --system
Updating rubygems-update
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
Wills-MBP:~ Will$
문제의 파일을 찾았지만 OS의 보안 기능에 대한 쓰기 권한을 부여 할 수 없습니다.
지금 당장 jekyll이 설치되지 않았습니다. 다시 설치하고 모든 것을 다시 실행하려고합니다.
누구든지 해결 방법을 알고 있습니까?
** 빠른 메모, 여기
Wills-MBP:~ Will$ which ruby
/usr/bin/ruby
Wills-MBP:~ Will$ which gem
/usr/bin/gem
그래서 내가 대신/usr/지방의,이는 나의 시스템을 지적하기 의미 같아요 ... 내가이 명령을 실행할 때 내가 무엇을 얻을 수 있습니다. 어떻게 변경합니까?