捆绑安装非常初学者的问题

发布于 2024-12-05 12:44:01 字数 931 浏览 0 评论 0原文

好吧,我基本上是编程的第一天,试图遵循 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 技术交流群。

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

发布评论

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

评论(1

随波逐流 2024-12-12 12:44:01

为了使用捆绑器 gem,您需要首先安装它。

gem install bundler

然后你可以使用:

bundle install

In order to use the bundler gem, you'll need to first install it.

gem install bundler

Then you can use:

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