capistrano / rvm

MIT License
140 stars 47 forks source link

cannot load such file -- capistrano/rvm #5

Closed nesrual closed 11 years ago

nesrual commented 11 years ago

I get the following error when using capistrano-rvm:

cap aborted!
cannot load such file -- capistrano/rvm

My Gemfile contains the following entries:

gem 'capistrano', :github => 'capistrano/capistrano', :branch => 'v3'
gem 'capistrano-rvm', github: 'capistrano/rvm'

And the Gemfile.lock:

GIT
  remote: git://github.com/capistrano/capistrano.git
  revision: 5f3a2b67ff506dedbd92c9c7e59010fa360d1f12
  branch: v3
  specs:
    capistrano (3.0.0.pre14)
      i18n
      rake (>= 10.0.0)
      sshkit (>= 0.0.23)

GIT
  remote: git://github.com/capistrano/rvm.git
  revision: 76d7cd6bd86430210d7eb8cbc209f4b5161c42a2
  specs:
    capistrano-rvm (0.0.1)
      capistrano

I am using rvm 1.22.3 (master) under OSX. Ruby version is ruby-2.0.0-p247

kirs commented 11 years ago

Do you use bundle exec before the cap command?

nesrual commented 11 years ago

That did the trick - sorry. Problem solved.

kirs commented 11 years ago

That's because your default binstub of cap points to capistrano 2.x. You can generate binstubs in the app directory and add ./bin to $PATH, after that you won't need to type bundle exec each time.

Kir Shatrov +7 (929) 631-46-35

On Tuesday, September 3, 2013 at 5:39 PM, nesrual wrote:

That did the trick - sorry. Problem solved.

— Reply to this email directly or view it on GitHub (https://github.com/capistrano/rvm/issues/5#issuecomment-23722252).