Blog

Sep
15

no such file to load — capistrano/ext/multistage

Posted by Michael Cindric in development, mac osx, ruby on rails | 7 Comments »

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

09.15.09

Thanks a lot!!!

[ ]‘s
Leonardo Caineli

09.15.09

Thanks mate. This helped me a lot.

Shaun

09.15.09

Had the same problem with Capistrano on Windows, did the instructions and now it’s fixed and my life’s much better than before :)

09.15.09

Nice work man – this just fixed my problem!

09.15.09

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.

09.15.09

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

09.15.09

sudo gem install capistrano-ext is all i needed to do, fwiw

Leave Your Response

Name*
Email*
Website URL
Comments*
* Name, Email, Comment are Required
*

Spam Protection by WP-SpamFree