ruby - Updating jekyll using gem -
i wanted try out jekyll on windows. unfortunately machine trying did not gave me installation rights. decided go portable jekyll. put repo in d:\program files\jekyll
folder. updated path
in system environment variables.
however jekyll setup has older gems sass, jekyll. updated sass. worked fine. when tried updating jekyll below command
gem update jekyll
it gave me following errors:
updating jekyll-mentions fetching: jekyll-mentions-0.2.1.gem (100%) installed jekyll-mentions-0.2.1 temporarily enhancing path include devkit... building native extensions. take while... error: error installing jekyll-mentions: error: failed 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 remain installed in d:/program files/jekyll/ruby/lib/ruby/gems/2. 0.0/gems/yajl-ruby-1.2.1 inspection. results logged 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%) installed jekyll-redirect-from-0.7.0 building native extensions. take while... error: error installing jekyll-redirect-from: error: failed 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 remain installed in d:/program files/jekyll/ruby/lib/ruby/gems/2. 0.0/gems/yajl-ruby-1.2.1 inspection. results logged d:/program files/jekyll/ruby/lib/ruby/gems/2.0.0/gems/yajl-rub y-1.2.1/ext/yajl/gem_make.out
the rest of message follows:
updating jekyll-sitemap fetching: jekyll-sitemap-0.8.1.gem (100%) installed jekyll-sitemap-0.8.1 parsing documentation jekyll-sitemap-0.8.1 installing ri documentation jekyll-sitemap-0.8.1 installing darkfish documentation jekyll-sitemap-0.8.1 updating jekyll-watch fetching: jekyll-watch-1.2.1.gem (100%) installed jekyll-watch-1.2.1 fetching: celluloid-0.16.0.gem (100%) installed celluloid-0.16.0 parsing documentation jekyll-watch-1.2.1 installing ri documentation jekyll-watch-1.2.1 installing darkfish documentation jekyll-watch-1.2.1 parsing documentation celluloid-0.16.0 installing ri documentation celluloid-0.16.0 installing darkfish documentation celluloid-0.16.0 gems updated: jekyll-mentions jekyll-redirect-from jekyll-sitemap jekyll-watch c elluloid
quick google told me install ruby devkit. followed steps here. downloaded self extracting exe devkit-mingw64-64-4.7.2-20130224-1432-sfx.exe
here. extracted in d:\programfiles\jekyll\ruby-devkit
, navigated directory in command prompt , ran ruby dk.rb init
below:
d:\program files\jekyll\ruby-devkit>ruby dk.rb init initialization complete! please review , modify auto-generated 'config.yml' file ensure contains root directories of installed rubies want enhanced devkit.
now dont know if original issue fixed. when ran gem update
gems problems, said nothing update.
c:\windows\system32>gem update jekyll-mentions updating installed gems nothing update c:\windows\system32>gem update jekyll-redirect-from updating installed gems nothing update
please me understand whats current state of setup. fixed afterall? new ruby & gems.
you try this:
- navigate jekyll folder
d:\program files\jekyll
- run
gem cleanup
inside folder - after run
gem update
(also in folder)
the gemfile included in jekyll should hand right gems already. if not work, please post output here.
you try gem install jekyll-mentions
instead of gem update jekyll-mentions
since seems there error during installation.
hope helps!
Comments
Post a Comment