Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 745
Fabrizio Fortino Avatar asked Dec 11 '22 20:12

Fabrizio Fortino


2 Answers

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
like image 131
Fabrizio Fortino Avatar answered Jan 02 '23 07:01

Fabrizio Fortino


I had the same error message when installing Capifony in Ubuntu 14.04. I did this:

# gem install net-ssh -v 2.9.2

And then this:

# gem install capifony

It worked.

I found the solution described here.

like image 29
Đuro Mandinić Avatar answered Jan 02 '23 08:01

Đuro Mandinić