LoginSignup
0
0

More than 5 years have passed since last update.

Rails tutorial - Guardをインストールできない

Last updated at Posted at 2015-06-23

またWindows依存の箇所でうまく動作しなくなった。

チュートリアルどおりにやってもGuardをインストールできない。
厳密にいうと、以下の様なエラーメッセージが表示される。

C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/win32console-1.3.2-x86-mingw32/lib/Win32/Console.rb:12:in `require': cannot load such file -- 2.0/Console_ext (LoadError)

調べてみるとどうもWin32consoleというモジュールはもうインストールする必要がないらしい。
- rspec error (cannot load such file)

でuninstallの方法がわからない。。
適当にためしたら以下でいけた。

  1. bundleのGemfileからwin32consoleをコメントアウト。
  2. gem uninstall win32consoleでアンインストール。
  3. budle install --without productionからやり直し。

これでもwin32consoleは自動でインストールされちゃうんだけど、今度はGuard起動時のエラー表示は無くなった。
不思議すぎるけどまあいい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0