2017-12-10 2 views
0

높은 시에라로 업데이트하기 전에 모든 것이 잘 작동 했으므로 지킬이 실행되지 않습니다. 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/지방의,이는 나의 시스템을 지적하기 의미 같아요 ... 내가이 명령을 실행할 때 내가 무엇을 얻을 수 있습니다. 어떻게 변경합니까?

답변

1

나는 그것을 알아 냈다! 나는 나의 대답을 여기에서 발견했다. 그래서 난에서 제공하는 명령을 실행 : 나열된 단계를 수행하는 동안 https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/#laptop-script

나는이 나에게 오류 "는/usr/빈은/usr/지방/빈 전에 발생 경고를"준 명령 양조 의사

를 실행 문제 해결 가이드 https://www.moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/#troubleshoot-brew

echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile 

터미널을 종료하고 다시 시작하십시오. 그 후

는 단순히 제대로 설치

gem install jekyll bundler 

모든 것을 실행하고 갈 좋은 가이드에서 더 이상 단계를 수행하지 않았다!

관련 문제