gltail“缺少 gem net-ssh”

发布于 2024-08-07 19:04:57 字数 765 浏览 8 评论 0原文

我正在尝试在本地系统上设置 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 没有被视为正确安装?

I'm attempting to get gltail set up on my local system to monitor logs remotely.

I've got all the dependencies installed, but when I go to run gltail ...

./gl_tail configfile ../config.yaml

I get this output:

Missing gem net-ssh.
Ubuntu:
  sudo gem install -y net-ssh -r

.. which I've done a number of times. Here is the output:

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...

But when I go to run it again, I get the same missing gem net-ssh error.

dev@ubuntu:~/Desktop/Fudge-gltail-e5b252d/bin$ which ruby
/usr/bin/ruby
dev@ubuntu:~/Desktop/Fudge-gltail-e5b252d/bin$ which gem
/usr/bin/gem

Why isn't net-ssh being seen as properly installed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冰雪之触 2024-08-14 19:04:57

这对我在 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

来自: https://github.com/Fudge/gltail/issues /2

This worked for me on 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

From: https://github.com/Fudge/gltail/issues/2

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文