rails server bin/rails:6: warning: already initialized constant APP_PATH error

前端 未结 20 950
别那么骄傲
别那么骄傲 2020-11-30 22:42

I\'ve tried a number of things like uninstalling/reinstalling rails and gems but to no avail.

When I go into my new project and run rails s or bundle exec rails serv

20条回答
  •  北荒
    北荒 (楼主)
    2020-11-30 23:34

    This happened to me after doing a brew upgrade. My guess is that this broke some gems with native extensions, even though there was no error message pointing to that.

    What I ended up doing was completely removing my installed gems (In my case I completely uninstalled and reinstalled the ruby version using rbenv).
    Running bundle install recompiled the native extensions, and everything was running again.

提交回复
热议问题