rvm icon indicating copy to clipboard operation
rvm copied to clipboard

Incorrect PATH warning even though ruby version is specified

Open emirkin opened this issue 11 years ago • 1 comments

I get this error when my capistrano (capistrano-rvm (0.1.1)) script runs rvm commands:

   Warning! PATH is not properly set up, '/usr/local/rvm/gems/ruby-2.1.0/bin' is not at first place,
         usually this is caused by shell initialization files - check them for 'PATH=...' entries,
         it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
         to fix temporarily in this shell session run: 'rvm use ruby-2.1.0'.

At the same time, I have set :rvm_ruby_version, '2.1.0' in my deploy.rb.

It appears that capistrano-rvm does not choose ruby properly. If I execute rvm commands manually, I get this warning too. However, it goes away if I execute rvm use 2.1.0 first.

emirkin avatar Oct 13 '14 02:10 emirkin

Same problem here. I had to set the gemset as in :rvm_ruby_version, '2.2.0@mygemset'. That made the error go away.

pmontrasio avatar Dec 28 '14 18:12 pmontrasio