在 Windows 上安裝設定 Ruby 環境

出自DILA Wiki
於 2015年6月17日 (三) 15:06 由 imported>Ray 所做的修訂 →‎安裝 Ruby

安裝 Ruby

http://rubyinstaller.org/ 下載安裝 RubyInstaller for Windows

2015.6.17: Nokogiri 還不支援 Ruby 2.2, 可以用 Ruby 2.1.6

Nokogiri

在 dos 下執行以下命令安裝 Nokogiri (XML Parser for Ruby)

gem install nokogiri

如果出現 SSL_connect 錯誤,就執行以下指令改用 http

gem sources -r https://rubygems.org/  # 移除 https
gem sources -a http://rubygems.org/  # 加入 http

如果出現 Could not create Makefile,就更新 Rubygems:

gem update --system