Search code examples
rubyrubygemscapistranonet-ssh

How to install capistrano v2.13.5 with ruby 1.8.7?


I am using ruby 1.8.7 (2013-06-27 patchlevel 374) [i686-darwin14]. When I try to install the capistrano gem I get the following error:

sudo gem install capistrano -v2.13.5
ERROR:  Error installing capistrano:
    net-ssh requires Ruby version >= 2.0.

AFAIK capistrano 2.13.5 should be compatible with ruby 1.8.7

How can I install capistrano v2.13.5 with ruby 1.8.7 (<2.0) installed?


Solution

  • I have sorted this problem out manually installing the capistrano dependencies. Execute the following commands if you have the same problem:

    sudo gem install net-sftp -v2.0.0
    sudo gem install net-scp -v1.0.0
    sudo gem install net-ssh-gateway -v1.1.0
    sudo gem install capistrano -v2.13.5