我正在尝试通过RubyGems在macOS 10.11.6 (15G1611)上安装Jekyll,但得到一个权限错误。无法sudo chmod来更改它(SIP锁定目录...)
$ install jekyll
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/bin directory.
我正在运行MacOS 10.14.1,如果不使用sudo来安装bundler,就无法安装Jekyll。这是解决办法吗?
当我跑步时:
gem install bundler jekyll
我得到:
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.
有了sudo,一切都安装了,但我一直在阅读关于使用sudo安装gems的文章,因为这是一种糟糕的实践。有解决办法吗
我正在尝试使用 on macOS创建一个Jekyll项目,我已经在中完成了这些步骤,直到必须运行bundle为止。当我运行bundle时,发生了这样的情况:
$ bundle
[!] There was an error parsing `Gemfile`: Undefined local variable or method `init' for Gemfile. Bundler cannot continue.
# from [Project Dir]/Gemfile:1
# -------------------------------------------
&g
当我运行$ jekyll或$ jekyll serve时,它会引发以下错误:
-bash: /usr/local/bin/jekyll: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory
我检查了/System/Library/Frameworks/Ruby.framework/Versions/和版本2.0不存在。结果,在我在HighSierra上更新的同一天,安装了2.3版本。
我认为Jekyll仍然在寻找2.0版本。
升级到macOS赛拉(10.12)后,Jekyll出现了各种各样的问题。运行jekyll build失败,并显示以下错误(我早就遇到过这种错误):/Library/Ruby/Gems/2.0.0/gems/bundler1.12.5/lib/bundler/runtime.rb:35:in block in setup: You have already activated colorator 1.1.0, but your Gemfile requires colorator 0.1. Prependingbundle execto your command may solve this.
我正在为jekyll安装较少的插件,但将此文件放置到_plugins文件夹:
我已经运行了:sudo安装了较少的
我已经验证了gem是使用gem list:less (2.6.0)安装的。
Ran env gemdir:
“较少”的/usr/local/lib/ruby/gems/2.4.0/gems/less-2.6.0/lib/less.rb:宝石
虽然我无法使用包显示路径找到它。
当我运行它时,它会抱怨gem没有安装:
You are missing the library required for less. Please run:
$ [sudo] gem install les
在我更新到High Sierra之前,一切都很好,现在jekyll不能运行了。我卸载了jekyll,确保ruby是使用brew更新的(说ruby 2.4.2_1已经安装),然后尝试重新安装jekyll。这是我从命令行得到的错误。
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: bun
发现今天我无法启动我的'jekyll服务器‘,所以在重新安装'jekyll’之前,我得到了这个错误.
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
然后,我尝试'sudo创业板安装jekyll‘,它成功了!
有人能解释一下这是怎么回事吗?谢谢!
我最近发现jekyll命令在我的计算机上不再工作了,我已经完美地使用了它几个月。
每当我尝试运行jekyll命令时,它都会说:
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/dependency.rb:319:in `to_specs':
Could not find 'jekyll' (>= 0) among 34 total gem(s) (Gem::LoadError)
Checked in 'GEM_PATH=/Users
描述
我正在尝试使用GitHub页面来设置我的个人网站,如中描述的那样,使用Jekyll 3.8.5,但是绑定程序有问题。
详细信息
包找不到已安装的Jekyll 3.8.5
$ bundle exec jekyll 3.8.5 new .
fatal: 'jekyll 3.8.5' could not be found. You may need to install the jekyll-3.8.5 gem or a related gem to be able to use this subcommand.`
确认我确实有jekyll-3.8.5
$ bundle inf
说,
如果您对浏览这些正在进行的文档感兴趣,请安装jekyll-docs gem并在终端中运行jekyll docs。
当我试图在MacBook Air上安装jekyll-docs时,遇到了以下问题:
sunqingyaos-MacBook-Air:myblog sunqingyao$ jekyll docs
You must install the 'jekyll-docs' gem to use the 'jekyll docs' command.
sunqingyaos-MacBook-Air:myblog sunqingyao$ sudo ge
我开始在我的家用电脑( mac)上做Jekyll网站的工作,然后开始在我的linux机器上继续工作。我在运行'jekyll serve‘时遇到了这些错误
from /home/gmsdev/.rvm/gems/ruby-2.2.1/gems/jekyll-3.1.2/lib/jekyll/plugin_manager.rb:33:in `require_from_bundler'
from /home/gmsdev/.rvm/gems/ruby-2.2.1/gems/jekyll-3.1.2/bin/jekyll:9:in `<top (required)>'
当我运行bundle exec jekyll serve时,我会得到以下错误消息
Dependency Error: Yikes! It looks like you don't have jekyll-figure or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file