我正在尝试在 Mac 上设置 showoff.io 或 localtunnel,但我陷入困境

发布于 2024-11-25 12:46:30 字数 899 浏览 4 评论 0原文

我按照 showoff.io 上的说明安装了 gem,但是当我尝试运行时

show 8888

它不起作用,我在

-bash: show: command not found

他们的 faq 中,他们提到

gem contents showoff-io

如果发生这种情况就运行,但我不知道如何阅读我的内容得到:

Rakefile
Gemfile
lib/showoff/client.rb
lib/showoff/settings.rb
lib/showoff/api.rb
lib/showoff/helpers.rb
lib/showoff/version.rb
lib/showoff/setup.rb
lib/showoff/session.rb
lib/showoff.rb
bin/show

他们这样说:

这将列出 showoff-io gem 中的所有文件。查找 bin/show 脚本。将该文件夹添加到您的 $PATH,或者将脚本符号链接到 $PATH 上已有的位置。例如:

sudo ln -s /var/ruby/gems/.../bin/show /usr/local/bin

但显然复制和粘贴不会执行任何操作,因为这些只是示例路径。

我确信这是非常基本的,但我在这方面是新手。我必须做什么?

谢谢!

I installed the gem according to the instructions at showoff.io, but when I try to run

show 8888

it doesn't work and I get

-bash: show: command not found

In their faq, they mention running

gem contents showoff-io

if that happens, but I don't know how to read what I get:

Rakefile
Gemfile
lib/showoff/client.rb
lib/showoff/settings.rb
lib/showoff/api.rb
lib/showoff/helpers.rb
lib/showoff/version.rb
lib/showoff/setup.rb
lib/showoff/session.rb
lib/showoff.rb
bin/show

They say this:

This will list all of the files in the showoff-io gem. Look for the bin/show script. Either add that folder to your $PATH, or symlink the script into a location already on your $PATH. For example:

sudo ln -s /var/ruby/gems/.../bin/show /usr/local/bin

But obviously copy&pasting that doesn't do anything because those are just example paths.

I'm sure this is very basic, but I'm a novice at this. What do I have to do?

Thanks!

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

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

发布评论

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

评论(1

缱倦旧时光 2024-12-02 12:46:30

运行以下命令确定 gem 安装可执行文件的目录,然后将其添加到您的 PATH 中。

gem env | grep "EXECUTABLE DIRECTORY"

或者,您可以运行以下命令,将 show 命令符号链接到您的 /usr/bin 目录中

sudo ln -s $(gem env | grep "EXECUTABLE DIRECTORY" | cut -d":" -f 2)/show /usr/bin/show

Run the following command to determine the directory that gem installs executable files in and then add it to you PATH.

gem env | grep "EXECUTABLE DIRECTORY"

Alternatively you can run the following command which will symlink the show command into your /usr/bin directory

sudo ln -s $(gem env | grep "EXECUTABLE DIRECTORY" | cut -d":" -f 2)/show /usr/bin/show
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文