Ruby 使用gem更新jekyll
我想在Windows上试用jekyll。但不幸的是,我尝试的机器没有给我安装权。所以我决定和你一起去。我把那个回购放在我的Ruby 使用gem更新jekyll,ruby,gem,jekyll,Ruby,Gem,Jekyll,我想在Windows上试用jekyll。但不幸的是,我尝试的机器没有给我安装权。所以我决定和你一起去。我把那个回购放在我的D:\Program Files\jekyll文件夹中。更新了系统环境变量中的路径 然而,这个jekyll设置有更古老的sass宝石,jekyll。所以更新了sass。很好。但是当我尝试用下面的命令更新jekyll时 gem update jekyll 它给了我以下错误: Updating jekyll-mentions Fetching: jekyll-mentions-
D:\Program Files\jekyll
文件夹中。更新了系统环境变量中的路径
然而,这个jekyll设置有更古老的sass宝石,jekyll。所以更新了sass。很好。但是当我尝试用下面的命令更新jekyll时
gem update jekyll
它给了我以下错误:
Updating jekyll-mentions
Fetching: jekyll-mentions-0.2.1.gem (100%)
Successfully installed jekyll-mentions-0.2.1
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing jekyll-mentions:
ERROR: Failed to build gem native extension.
"D:/Program Files/jekyll/ruby/bin/ruby.exe" extconf.rb
D:/Program Files/jekyll/ruby/bin/ruby.exe: invalid switch in RUBYOPT: -F (RuntimeError)
Gem files will remain installed in D:/Program Files/jekyll/ruby/lib/ruby/gems/2.
0.0/gems/yajl-ruby-1.2.1 for inspection.
Results logged to D:/Program Files/jekyll/ruby/lib/ruby/gems/2.0.0/gems/yajl-rub
y-1.2.1/ext/yajl/gem_make.out
Updating jekyll-redirect-from
Fetching: jekyll-redirect-from-0.7.0.gem (100%)
Successfully installed jekyll-redirect-from-0.7.0
Building native extensions. This could take a while...
ERROR: Error installing jekyll-redirect-from:
ERROR: Failed to build gem native extension.
"D:/Program Files/jekyll/ruby/bin/ruby.exe" extconf.rb
D:/Program Files/jekyll/ruby/bin/ruby.exe: invalid switch in RUBYOPT: -F (RuntimeError)
Gem files will remain installed in D:/Program Files/jekyll/ruby/lib/ruby/gems/2.
0.0/gems/yajl-ruby-1.2.1 for inspection.
Results logged to D:/Program Files/jekyll/ruby/lib/ruby/gems/2.0.0/gems/yajl-rub
y-1.2.1/ext/yajl/gem_make.out
其余信息如下:
Updating jekyll-sitemap
Fetching: jekyll-sitemap-0.8.1.gem (100%)
Successfully installed jekyll-sitemap-0.8.1
Parsing documentation for jekyll-sitemap-0.8.1
Installing ri documentation for jekyll-sitemap-0.8.1
Installing darkfish documentation for jekyll-sitemap-0.8.1
Updating jekyll-watch
Fetching: jekyll-watch-1.2.1.gem (100%)
Successfully installed jekyll-watch-1.2.1
Fetching: celluloid-0.16.0.gem (100%)
Successfully installed celluloid-0.16.0
Parsing documentation for jekyll-watch-1.2.1
Installing ri documentation for jekyll-watch-1.2.1
Installing darkfish documentation for jekyll-watch-1.2.1
Parsing documentation for celluloid-0.16.0
Installing ri documentation for celluloid-0.16.0
Installing darkfish documentation for celluloid-0.16.0
Gems updated: jekyll-mentions jekyll-redirect-from jekyll-sitemap jekyll-watch c
elluloid
QuickGoogle让我安装ruby devkit。所以我按照步骤。我从下载了自解压exeDevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe
。在D:\ProgramFiles\jekyll\ruby devkit
中提取它,然后在命令提示符下导航到此目录并运行ruby dk.rb init
,如下所示:
D:\Program Files\jekyll\ruby-devkit>ruby dk.rb init
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
现在我不知道原来的问题是否解决了。当我为有问题的gem运行gem update
时,它没有说要更新
C:\Windows\system32>gem update jekyll-mentions
Updating installed gems
Nothing to update
C:\Windows\system32>gem update jekyll-redirect-from
Updating installed gems
Nothing to update
请帮助我了解此设置的当前状态。它到底修好了吗?我对ruby&gems完全陌生。你可以试试这个:
- 导航到您的jekyll文件夹
D:\Program Files\jekyll
- 在该文件夹内运行
gem cleanup
- 然后运行
(也在该文件夹中)gem update
gem install jekyll indications
而不是gem update jekyll indications
,因为安装过程中似乎出现了错误
希望这有帮助 感谢您的评论/建议,请不要投反对票。