Mac OS X 上的 Rails Gems 符号链接设置
我有 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你是否通过
sudo
安装了它?Rails 3 和 gems 的工作方式与 Rails 2 没有什么不同。只要您使用
sudo gem install
,这些命令就应该可用。我的疯狂猜测。试试这个:
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 :