如何在heroku.com 上为bamboo-mri-1.9.2 堆栈设置Virtual box 虚拟机

发布于 2024-10-07 22:16:35 字数 792 浏览 0 评论 0原文

我想建立一个 Ruby/Rails 开发环境,该环境反映了我在 heroku.com 上获得的 bare-mri-1.9.2 堆栈。我需要这个,以便我可以遵循 Michael Hartl 的 Rails 教程。所以我认为我需要:

  • Debian Lenny 5.0
  • git
  • curl
  • rvm
  • Ruby MRI 1.9.2
  • Rails 3.0.3
  • PostgreSQL - 但我不确定哪个版本
  • Ruby/PostgreSQL 驱动程序
  • zlib
  • readline
  • openssl
  • ruby​​gems
  • autotest
  • drb
  • spork

每次我尝试新步骤时在教程中,我遇到了一些问题,说我缺少库或 gem,或者 gem 未加载,或者其他什么。 (我的计算机是 Ubuntu 10.4,并且设置得很好,可以运行 Ruby 1.8.7 和 Rails 2.3.x)。

我做了一些挖掘,最终弄清楚了如何让 openssl 和 readline 适用于我的系统。但是,我想知道是否有人有可重复的指令集,可以告诉我需要安装什么才能在我的计算机上(最好是在 VirtualBox 或 VMWare VM 中)安装此开发堆栈。

我感谢您能给我的任何帮助。

I would like to set up a Ruby/Rails development environment that mirrors what I would get on heroku.com for the bamboo-mri-1.9.2 stack. I need this so that I can follow along with Michael Hartl's Rails Tutorial. So I think that I need:

  • Debian Lenny 5.0
  • git
  • curl
  • rvm
  • Ruby MRI 1.9.2
  • Rails 3.0.3
  • PostgreSQL - but I'm not sure which version
  • Ruby/PostgreSQL drivers
  • zlib
  • readline
  • openssl
  • rubygems
  • autotest
  • drb
  • spork

Every time I try a new step in the tutorial I run into problems saying that I am missing a library or a gem, or that a gem didn't load, or whatever. (My computer is Ubuntu 10.4, and was set up nicely to run Ruby 1.8.7 and Rails 2.3.x).

I did some digging and I eventually figured out how to get openssl and readline working for my system. However, I would like to know if anybody has a repeatable instruction set that will tell me what I need to install to get this development stack on my computer, preferably in a VirtualBox or VMWare VM.

I appreciate any help that you can give me.

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

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

发布评论

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

评论(1

旧竹 2024-10-14 22:16:35

虽然我不能保证这将与 Heroku 完全一样,但以下内容应该足够相似,并且是 Rails 开发的良好平台。

  1. Debain Lenny 5.0(影响很小,但我们可以确定它与 Heroku 匹配)
  2. 安装 RVM,一个可以轻松安装 ruby​​ 的程序。 http://rvm.beginrescueend.com/
  3. 阅读“rvm 说明”并确保您已准备好开始使用 RVM
  4. 如果需要,使用 RVM 安装 openssl 和/或 readline
  5. 使用命令 'rvm install 1.9.2' 安装 Ruby 1.9.2
  6. 安装 gems 'bundler' 和 'rails'
  7. 使用命令 ' 从 Debain 存储库安装 PostrgeSQL apt-get 安装 postgresql'。同样,小的版本差异不会产生显着差异,并且 Debain 存储库应该有稳定的版本。
  8. 创建您的第一个应用程序“rails new -d postgresql”
  9. 享受您的新环境!

While I can't promise this will be exactly the same as heroku, the following should be sufficiently similar and a good platform for rails development.

  1. Debain Lenny 5.0 (this has very little effect, but we can be sure this matches Heroku)
  2. Install RVM, a program to make installing ruby easy. http://rvm.beginrescueend.com/
  3. Read the 'rvm notes' and make sure you're ready to start using RVM
  4. If required, use RVM to install openssl and/or readline
  5. Install Ruby 1.9.2 with the command 'rvm install 1.9.2'
  6. Install the gems 'bundler' and 'rails'
  7. Install PostrgeSQL from the Debain repositories with the command 'apt-get install postgresql'. Again a small version difference won't make a significant difference, and the Debain repos should have stable version.
  8. Create your first app 'rails new -d postgresql'
  9. Enjoy your new environment!
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文