Rails 2.2.2 issue: undefined method `activate_bin_path' for Gem:Module (NoMethodError)

后端 未结 5 929
时光取名叫无心
时光取名叫无心 2020-12-17 08:49

I am working on Rails 2.2.2 application. For this I installed rvm with Ruby version 1.9.3p551. There is no Gemfile for this application. So as mentioned in the environment.

5条回答
  •  感动是毒
    2020-12-17 09:24

    I had a similar issue, when running the standalone passenger, it worked fine. However, running it using a systemd service gave the same error as the OP:

    undefined method `activate_bin_path' for Gem:Module (NoMethodError)
    

    I've managed to solve it using

    env | egrep 'gem|rvm|ruby' > passenger.env
    

    and adding it to the service file using EnvironmentFile=[...]/passenger.env.

    Hopefully, this will be useful for other people stuck on this.

提交回复
热议问题