0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)#環境構築

Last updated at Posted at 2025-10-19

実行環境

  • macOS 26.0(25A354)
  • ruby --version
    ruby 3.2.9 (2025-07-24 revision 8f611e0c46) [arm64-darwin25]
  • rails --version
    Rails 7.0.4.3
  • bundler --version
    Bundler version 2.5.6
  • gem --version
    3.4.19
  • rbenv --version
    rbenv 1.3.2

エラー発生時の状況

  • rails チュートリアルをローカル環境で進めようとしていた
  • $ gem install rails -v 7.0.4.3でrailsのインストール完了済み
  • $ rails —versionと、rails newを実行すると以下のエラーがでる
logger_thread_safe_level.rb:12:in `<module:LoggerThreadSafeLevel>': uninitialized constant ActiveSupport::LoggerThreadSafeLevel::Logger (NameError)

解決法

current-rubyをバージョンダウンすることで無事解決しました。

  • $ gem install concurrent-ruby -v 1.3.4
  • $ gem list concurrent-ruby実行で
    以下のようにバージョン1.3.5がインストールされていたら
*** LOCAL GEMS ***

 concurrent-ruby (1.3.5, 1.3.4)

  • $ gem uninstall concurrent-ruby -v 1.3.5
    バージョン1.3.5をアンインストールする
  • $ gem list concurrent-ruby
    バージョン1.3.4のみがインストールされている状態を確認できたらOK

※ rails 7.1以降のバージョンをインストールする場合はこのエラーがでないらしい

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?