LoginSignup
4
3

More than 3 years have passed since last update.

warning: already initialized constant FileUtils::VERSION

Last updated at Posted at 2019-09-08

bundle updateしたせいかrails sするとなぜか、次のようなエラーを吐くようになってしまった。
気になるので調べてみた。

.rbenv/versions/2.6.3/lib/ruby/2.6.0/fileutils/version.rb:4: warning: already initialized constant FileUtils::VERSION
$ gem uninstall fileutils
Successfully uninstalled fileutils-1.2.0

$ gem update --default
Updating installed gems
Updating fileutils
Fetching fileutils-1.2.0.gem
Successfully installed fileutils-1.2.0
Done installing documentation for fileutils after 0 seconds
Done installing documentation for fileutils after 0 seconds
Gems updated: fileutils

$ rails s

# うまく行きました。

参考サイト
「rails s」でwarning: already initialized constantが出る : 新人SEの気まぐれ日記

Rails 5.2.0 with Ruby 2.5.1 console - `warning:` `already` initialized constant FileUtils::VERSION - Stack Overflow

4
3
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
4
3