无法在macOS Sierra 10.12.6上安装jekyll [英] Trouble installing jekyll on macOS Sierra 10.12.6
问题描述
-
尝试了gem install jekyll的原始方法,但出现此错误:
Tried the original method of gem install jekyll and I get this error:
错误:执行gem时...(Gem :: FilePermissionError) 您没有对/Library/Ruby/Gems/2.0.0目录的写权限.
ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
已安装的Xcode和命令行工具.然后使用以下命令安装自制软件:
Installed Xcode and command line tools. Then followed up with installing homebrew using this command:
/usr/bin/ruby -e"$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install )"
之后出现此错误:
get this error after:
错误:无法链接所有补全,文档和手册页: 权限被拒绝-(../../../Homebrew/completions/zsh/_brew,/usr/local/share/zsh/site-functions/_brew) 在以下期间失败:/usr/local/bin/brew update --force
Error: Failed to link all completions, docs and manpages: Permission denied - (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew) Failed during: /usr/local/bin/brew update --force
这些是我的红宝石和宝石版本:
These are my ruby and gem version:
- 可寻址(2.5.1)
- bigdecimal(默认值:1.2.0)
- CFPropertyList(2.2.8)
- 着色器(1.1.0)
- ffi(1.9.18)
- io-console(默认值:0.4.2)
- jekyll-sass-converter(1.5.0)
- jekyll-watch(1.5.0)
- json(默认值:1.7.7)
- 击倒(1.14.0)
- libxml-ruby(2.6.0)
- 听(3.0.8)
- 最小(默认值:4.3.2)
- nokogiri(1.5.6)
- 心理(默认值:2.0.0)
- public_suffix(2.0.5)
- rake(默认值:0.9.6)
- rb-fsevent(0.10.2)
- rb-inotify(0.9.10)
- rdoc(默认值:4.0.0)
- rubygems-update(2.6.12)
- 无礼(3.5.1)
- 不安(4.0.0)
- sqlite3(1.3.7)
- 测试单位(默认值:2.0.0.0)
- addressable (2.5.1)
- bigdecimal (default: 1.2.0)
- CFPropertyList (2.2.8)
- colorator (1.1.0)
- ffi (1.9.18)
- io-console (default: 0.4.2)
- jekyll-sass-converter (1.5.0)
- jekyll-watch (1.5.0)
- json (default: 1.7.7)
- kramdown (1.14.0)
- libxml-ruby (2.6.0)
- listen (3.0.8)
- minitest (default: 4.3.2)
- nokogiri (1.5.6)
- psych (default: 2.0.0)
- public_suffix (2.0.5)
- rake (default: 0.9.6)
- rb-fsevent (0.10.2)
- rb-inotify (0.9.10)
- rdoc (default: 4.0.0)
- rubygems-update (2.6.12)
- sass (3.5.1)
- sass-listen (4.0.0)
- sqlite3 (1.3.7)
- test-unit (default: 2.0.0.0)
请帮助!
推荐答案
您是否尝试使用sudo
运行命令?例如sudo gem install jekyll bundler
.这将确保您以管理员身份运行命令.
Did you try running the command with sudo
? for example sudo gem install jekyll bundler
. This will ensure that you're running the command as an administrator.
这篇关于无法在macOS Sierra 10.12.6上安装jekyll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!