Rails 5.2.0 with Ruby 2.5.1 console – `warning:` `already` initialized constant FileUtils::VERSION

I had the same issue. The one step missing from your post is to uninstall the fileutils gem first, then gem update with the default option.

gem uninstall fileutils
Successfully uninstalled fileutils-1.1.0
gem update fileutils --default
Updating installed gems
Updating fileutils
Fetching: fileutils-1.1.0.gem (100%)
Successfully installed fileutils-1.1.0

That got rid of the verbose fileutils messages for me.

Update: Instead of gem update –default, do gem update fileutils –default. This process should work for other gems too. Thanks to Matijs van Zuijlen for this.

Leave a Comment