Sep
15
no such file to load — capistrano/ext/multistage
I ran into this error the other day when running “cap -T”
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — capistrano/ext/multistage (LoadError)
So to fix this l did the following
sudo gem uninstall capistrano
sudo rm -rf /usr/bin/cap
sudo gem install capistrano-ext
sudo gem install capistrano
Needed to do “sudo rm -rf /usr/bin/cap” as doing just the uninstall of capistrano didn’t remove all the files l needed it to.





7 Responses
Thanks a lot!!!
[ ]‘s
Leonardo Caineli
Thanks mate. This helped me a lot.
Shaun
Had the same problem with Capistrano on Windows, did the instructions and now it’s fixed and my life’s much better than before
Nice work man – this just fixed my problem!
This helped me fix the problem.
Instead of the gem install commands, I did the following:
1) Added the following to Gemfile
# Deploy with Capistrano
gem ‘capistrano-ext’
gem ‘capistrano’
2) bundle update
Thanks for the helpful post.
Yes that will work in rails 3 apps. I’ll be posting a new way to handle different stages in a single deploy script without the use of capistrano-ext. It’s not a clean as multiple files but if your stages have small differences it’s a pretty cool and simple way to manage them. I’ll post it up before end of the week
sudo gem install capistrano-ext is all i needed to do, fwiw