我正在尝试在 Mac 上设置 showoff.io 或 localtunnel,但我陷入困境
我按照 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行以下命令确定 gem 安装可执行文件的目录,然后将其添加到您的 PATH 中。
或者,您可以运行以下命令,将 show 命令符号链接到您的 /usr/bin 目录中
Run the following command to determine the directory that gem installs executable files in and then add it to you PATH.
Alternatively you can run the following command which will symlink the show command into your /usr/bin directory