Rails bundle install 후 rails server 경고 발생시

rails·2021년 11월 16일
0

시행착오

목록 보기
6/7

노트북을 새로 구입하여 새 개발 환경에 기존 레일즈 프로젝트를 구축 하는 과정을 거치고 rails s 명령어로 서버 시작시 아래와 같은 경고 메시지가 다량으로 발생 하였다. 동작은 이상 없이만 아무래도 찜찜해서 워닝을 해결 하는 방법을 알아 보았다.


/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:20: warning: already initialized constant Pathname::TO_PATH
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:20: warning: previous definition of TO_PATH was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:22: warning: already initialized constant Pathname::SAME_PATHS
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:22: warning: previous definition of SAME_PATHS was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:34: warning: already initialized constant Pathname::SEPARATOR_LIST
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:34: warning: previous definition of SEPARATOR_LIST was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:35: warning: already initialized constant Pathname::SEPARATOR_PAT
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:35: warning: previous definition of SEPARATOR_PAT was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:41: warning: already initialized constant Pathname::ABSOLUTE_PATH
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:41: warning: previous definition of ABSOLUTE_PATH was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:20: warning: already initialized constant Pathname::TO_PATH
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:20: warning: previous definition of TO_PATH was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:22: warning: already initialized constant Pathname::SAME_PATHS
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:22: warning: previous definition of SAME_PATHS was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:34: warning: already initialized constant Pathname::SEPARATOR_LIST
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:34: warning: previous definition of SEPARATOR_LIST was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:35: warning: already initialized constant Pathname::SEPARATOR_PAT
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:35: warning: previous definition of SEPARATOR_PAT was here
/Users/max/.rvm/rubies/ruby-3.0.2/lib/ruby/3.0.0/pathname.rb:41: warning: already initialized constant Pathname::ABSOLUTE_PATH
/Users/max/.rvm/gems/ruby-3.0.2/gems/pathname-0.2.0/lib/pathname.rb:41: warning: previous definition of ABSOLUTE_PATH was here

구글링 해서 비슷한 증상의 다른 사람들이 사용한 방법을 여럿 시도 해 보았으나 해결이 되지 않다가
bundle clean --force 명령어를 실행 후 다시 bundle install 하자 경고 메시지가 사라졌다.

profile
rails

0개의 댓글