Eric Guo's

in HTML5, JavaScript, Ruby & Rails, Python, and Cloud MES!

Installation Ruby 2.1.3 on Windows Log


Except simply install the ruby 2.1.3 from rubyinstaller and it’s DevKit, here is my log when I meet the problem during ruby 2.1.3 on a Windows 7 32bits machine.

  1. Comments out the warn “DL is deprecated, please use Fiddle” at C:\Ruby21\lib\ruby\2.1.0\dl.rb
  2. Install yajl-ruby via gem install yajl-ruby -v 1.1.0 --platform ruby
  3. Install RedCloth via gem install RedCloth --platform ruby and move the file C:\Ruby21\lib\ruby\gems\2.1.0\gems\RedCloth-4.2.9\lib\ to new created folder C:\Ruby21\lib\ruby\gems\2.1.0\gems\RedCloth-4.2.9\lib\2.1.
  4. Install sqlite3 via:

    1. run C:\DevKit\devkitvars.bat
    2. mkdir c:\temp
    3. download to c:\temp
    4. c:\Temp>bsdtar --lzma -xf sqlite-
    5. c:\Temp>gem install sqlite3 --platform=ruby -- --with-opt-dir=C:/Temp
  5. Install bcrypt via gem install bcrypt --platform ruby

  6. Install win32console via gem install win32console --platform ruby

  7. Install ffi via gem install ffi --platform ruby

  8. Install pg via gem install pg --platform ruby

  9. Install mysql following stackoverflow via gem install mysql2 --platform=ruby -- '--with-mysql-dir="C:\mysql-connector"'

  10. Install puma via gem install puma -- --with-opt-dir=c:\temp

Setting global environment setting:


Also do not using ansicon in ruby 2.1.3 any more, seems not compatible.