ååã§msys2ã®ã¤ã³ã¹ãã¼ã«ã«æåããã®ã§ã次ã¯Windowsã®Rubyéçºç°å¢ãæ´ãããã¨ã«ããããã£ãããªã®ã§ææ°ã®Ruby2.5ãå ¥ãã¦ã¿ãã
æé
- å¤ãRubyãå ¥ã£ã¦ããã®ã§ã¢ã³ã¤ã³ã¹ãã¼ã«
rubyinstaller-2.5.0-1-x64.exe
ãããã«ã¯ãªãã¯- ããã©ã«ãã®å¤é¨ã¨ã³ã³ã¼ãã£ã³ã°ãUTF-8ã«ãããªãã·ã§ã³ããã£ãã®ã§ONã«(ããSJISã®ããã¹ãã¯ãã¾ãç¡ãã ããã»ã»)
- ã¤ã³ã¹ãã¼ã«çµäºå¾ã«éçºãããã®ã¤ã³ã¹ãã¼ã«ç»é¢ã«ç§»å
- msys2ã®ã¤ã³ã¹ãã¼ã«ã¯ãã§ã«æ¸ãã§ããã®ã§
3
ãé¸æ
ç¡äºã¤ã³ã¹ãã¼ã«ããã¦ããã確èªããã
$ ruby --version ruby 2.5.0p0 (2017-12-25 revision 61468) [x64-mingw32]
Gemã®ã¤ã³ã¹ãã¼ã«
æ©éMilkodeãã¤ã³ã¹ãã¼ã«ã
$ gem install milkode ERROR: Error installing milkode: The last version of rroonga (>= 1.1.0) to support your Ruby & RubyGems was 7.0.2. Try installing it with `gem install rroonga -v 7.0.2` and then running the current command again rroonga requires Ruby version < 2.5, >= 2.1. The current ruby version is 2.5.0. Successfully installed highline-1.7.10 Successfully installed termcolor-1.2.1 Successfully installed pkg-config-1.2.9 Successfully installed gqtp-1.0.6 Successfully installed groonga-command-1.3.4 Successfully installed json-stream-0.2.1 Successfully installed groonga-command-parser-1.1.2 Successfully installed hashie-3.5.7 Successfully installed groonga-client-0.5.8 Successfully installed io-like-0.3.0 Successfully installed archive-zip-0.10.0
rrooongaã2.5ã ã¨ã¤ã³ã¹ãã¼ã«ã§ããªãï¼ãªãã§ãã¨ã¼ã試ãã«nokogiriãã¤ã³ã¹ãã¼ã«ãã¦ã¿ããåãã¨ã©ã¼ãã¾ã ã¡ãã£ã¨æ©ãã£ãããªã»ã»ã
追è¨: å ¬å¼ãã¼ã¸èªãã ã2.5ã¯gemã®åé¡ãããããã¾ã 使ããªã£ã¦æ¸ãã¦ãããã»ã»ã
$ gem install nokogiri ERROR: Error installing nokogiri: The last version of nokogiri (>= 0) to support your Ruby & RubyGems was 1.8.1. Try installing it with `gem install nokogiri -v 1.8.1` nokogiri requires Ruby version < 2.5, >= 2.2. The current ruby version is 2.5.0. Successfully installed mini_portile2-2.3.0
Ruby2.4ãã¤ã³ã¹ãã¼ã«
æ¹ãã¦rubyinstaller-2.4.3-1-x64.exe
ãã¤ã³ã¹ãã¼ã«ãmsys2éçºãããã®ã¤ã³ã¹ãã¼ã«ã¯ãã§ã«çµãã£ã¦ããã®ã§ããã«ã¤ã³ã¹ãã¼ã«ãçµãã£ãã
$ gem install milkode $ gem install nokogiri
ã©ã¡ããç¡äºã¤ã³ã¹ãã¼ã«ã§ããï¼ãããMilkodeãå®è¡ãããã¨ããã¨åããªãã¨ã©ã¼ãã
$ milk init C:/Ruby24-x64/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- groonga.so (LoadError)
groonga.soãè¦ã¤ãããªãã¨ã®ãã¨ã試ãã«findãã¦ã¿ãã
ongaeshi@DESKTOP MSYS /c/Ruby24-x64 $ find . -name "groonga.so" ./lib/ruby/gems/2.4.0/gems/rroonga-7.0.2-x64-mingw32/lib/2.1/groonga.so ./lib/ruby/gems/2.4.0/gems/rroonga-7.0.2-x64-mingw32/lib/2.2/groonga.so ./lib/ruby/gems/2.4.0/gems/rroonga-7.0.2-x64-mingw32/lib/2.3/groonga.so
2.1
ã2.2
ã2.3
ã¯ç¨æããã¦ãããã©ã2.4ã¯ããããã¦ãªãï¼
ææ¥ããå°ã調ã¹ã¦ã¿ããã