我正试图在本地系统上设置gltail以远程监控日志。
我已经安装了所有依赖项,但是当我去运行gltail ...
./gl_tail configfile ../config.yaml
我得到了这个输出:
Missing gem net-ssh.
Ubuntu:
sudo gem install -y net-ssh -r
..我做了很多次。这是输出:
dev@ubuntu:~/Desktop/Fudge-gltail-e5b252d/bin$ sudo gem install net-ssh
Successfully installed net-ssh-2.0.15
1 gem installed
Installing ri documentation for net-ssh-2.0.15...
Installing RDoc documentation for net-ssh-2.0.15...
但是当我再次运行它时,我得到了同样缺少的gem net-ssh错误。
dev@ubuntu:~/Desktop/Fudge-gltail-e5b252d/bin$ which ruby
/usr/bin/ruby
dev@ubuntu:~/Desktop/Fudge-gltail-e5b252d/bin$ which gem
/usr/bin/gem
为什么net-ssh没有被正确安装?
答案 0 :(得分:1)
这对我在Ubuntu 10.04上有用:
sudo gem uninstall net-ssh
sudo gem install net-ssh -v 1.1.4
sudo apt-get install libopenssl-ruby1.8
sudo gem install net-ssh-gateway