Link error on installed Ruby Gem

Can anyone help with the odd Ruby Gem problem that I have - note that I have installed many gems in the past and have never seen this.

I downloaded net-ssh and net-sftp jewelry using the following commands:

sudo gem install net-ssh
sudo gem install net-sftp

both installed successfully. However, when I link to files inside my code, I get the following error:

./workers/ffmpeg_worker.rb:6:in `require': no such file to load -- net/ssh (LoadError)
    from ./workers/ffmpeg_worker.rb:6
    from ./workers/tests/test_ffmpeg_worker.rb:3:in `require'
    from ./workers/tests/test_ffmpeg_worker.rb:3
    from /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `load'
    from /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
    from /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5:in `each'
    from /Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/System/Library/Frameworks/Ruby.framework/...]

Notice when I do this:

gem list --local

Gemstones are listed as such:

net-scp (1.0.2)
net-sftp (2.0.2, 1.1.0)
net-ssh (2.0.15, 1.1.2)
net-ssh-gateway (1.0.1)

Any clues?

+3
source share
1 answer

, , Ruby ( ..), , - ,

. , gem which net/ssh, , RubyGems , - , .gems.

, script ($:), , .

+3

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


All Articles