How to install capistrano v2.13.5 with ruby ​​1.8.7?

I use ruby 1.8.7 (2013-06-27 patchlevel 374) [i686-darwin14]. When I try to install 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.5must be compatible withruby 1.8.7

How to install capistrano v2.13.5using ruby 1.8.7(<2.0)?

+4
source share
4 answers

I sorted this problem manually by installing capistrano dependencies. Run 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
+4
source

I had the same error message when installing Capifony on Ubuntu 14.04. I have done this:

# gem install net-ssh -v 2.9.2

And then this:

# gem install capifony

It worked.

I found the solution described here .

+5

Capistrano (net-ssh), ruby ​​ 2.0. capistrano. , Ruby capistrano. net-ssh v 2.6.5. , :

gem install net-ssh -v 2.6.5
gem install capistrano -v 2.13.5
+1

capistrano net-ssh, ruby >= 2.

, https://github.com/capistrano/capistrano/releases. , cd :

gem build capistrano.gemspec
gem install --local capistrano-2.15.5.gem
0

Source: https://habr.com/ru/post/1610402/


All Articles