Mac OS X 上的 Rails Gems 符号链接设置

发布于 2024-09-17 07:54:36 字数 202 浏览 3 评论 0原文

我有 Rails 3,并且一直在使用 Gemfile 来安装几个 gem,例如 annotate 和 rspec-rails

问题出现在所有教程中,它说要在命令行中键入“annotate”之类的内容,但它不起作用“命令不发现”这让我相信符号链接没有到位,无法让我在终端中运行/使用 gem。

如何为所有当前和未来的 Gem 启用此功能?

谢谢

I have Rails 3, and have been using a Gemfile to install several gems like annotate and rspec-rails

Problem is in all the tutorials, it says to type things like "annotate" in the command line but it doesn't work "command not found" this make me believe that Symbolic Links are not in place to allow me to run/use the gems in terminal.

How do I enable this for all current and future Gems?

Thanks

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

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

发布评论

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

评论(1

谁许谁一生繁华 2024-09-24 07:55:10
>> sudo gem install annotate

你是否通过sudo安装了它?

Rails 3 和 gems 的工作方式与 Rails 2 没有什么不同。只要您使用 sudo gem install,这些命令就应该可用。

我的疯狂猜测。试试这个:

bundle exec annotate
>> sudo gem install annotate

Do you have it installed by sudo?

Rails 3 and gems works no different than Rails 2. The commands should be available so long as you use sudo gem install.

My wild guess. Try this :

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