捆绑安装非常初学者的问题
好吧,我基本上是编程的第一天,试图遵循 Hartl 的 Ruby On Rails 3...但进展并不顺利,我似乎每一步都陷入了困境。
现在我在第 19 页和第 19 页。 20,不确定我是否做对了,因为它没有真正解释清楚它的含义,但我收到一条错误消息。我确实考虑过这里的其他问题,但没有找到任何像我一样初学者甚至我可能理解的问题。
对于那些没有哈特尔的书的人,我发现这个页面包含了一切: http: //ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:the_first_application
所以它说更新Gemfile的地方我修改了文档TextMate 读取 gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'。书中接着说:
组装正确的Gemfile后,使用捆绑安装安装gems:
$ 捆绑安装
正在获取 http://rubygems.org/
的源索引
我所做的是修改文件并点击保存,我不确定这是否是组装它的意思,或者是否还有更多内容我需要按。浏览 Textmate 中的菜单,我没有发现什么。然后,当我输入bundle install时,我收到消息未知命令包
任何基本术语的建议都会非常有帮助,因为我显然是一个完全的初学者。谢谢!
瑞安
Okay I'm basically day 1 at programming trying to follow Ruby On Rails 3 by Hartl... its not going well and I seem to be getting stuck every step of the way.
Right now I'm on page 19 & 20, not sure if I did it correct since it didn't really explain to well what it means but I get an error message. I did look thought other questions on here and didn't find any that were as beginner as mine that I might even understand.
For those without Hartl's book I found this page has it all: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#sec:the_first_application
So where it says to update the Gemfile I amended the document in TextMate to read gem 'sqlite3-ruby', '1.2.5', :require => 'sqlite3'. The book then says:
Once you've assembled the proper Gemfile, install the gems using bundle install:
$ bundle install
Fetching source index for http://rubygems.org/
What I did was amend the file and just hit save, I'm not sure if that's what it means by assembling it or if there is something more I need to press. Looking through the menus in Textmate, nothing jumped out at me. When I then typed in bundle install I get the message unknown command bundle
Any advice in basic terms would be very helpful as I'm obviously a complete beginner at this. Thanks!
Ryan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了使用捆绑器 gem,您需要首先安装它。
然后你可以使用:
In order to use the bundler gem, you'll need to first install it.
Then you can use: