ERROR: Missing RVM environment file After Doing rvm upgrade command - Passenger 4.0.23

假如想象 提交于 2019-12-02 08:17:45

looks like a bug, please open a ticket here: https://github.com/wayneeseguin/rvm/issues


Indeed this was a bug, to fix it run:

rvm get head
rvm gemset reset_env

you can repeat the reset_env operation for every gemset that is broken:

rvm ruby@gemset do rvm gemset reset_env

There might be a cached bin file in your RVM path. In my case, it's "/usr/local/rvm/bin/unicorn"

Also, you may not directly having the gem in your Gemfile. In my case, I do not have "unicorn" in my Gemfile although I had "capistrano-unicorn".

So that the system will try to use the global cached file "/usr/local/rvm/bin/unicorn".

The file's content may using a ruby that you no longer use.

if [[ -s "/usr/local/rvm/environments/ruby-2.0.0-p247" ]]
then
  source "/usr/local/rvm/environments/ruby-2.0.0-p247"
  exec unicorn "$@"
else
  echo "ERROR: Missing RVM environment file: '/usr/local/rvm/environments/ruby-2.0.0-p247'" >&2
  exit 1
fi
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!