安装适用于 Windows 7 的 Ruby on Rails(最新)
我是一名设计师,而不是一名编码员,并且在首次安装时遇到了问题。
我下载了 Rails 1.8.6 和 Instant Rails。
我打开控制台并尝试更新 gem。那里没有任何作用。
我想我会删除所有内容并重新开始,因为我确信我现在破坏了某些东西。我今天真的想买一台 Mac,只是为了让它工作起来。
您推荐什么: 1.到底要下载什么? 2. 采取什么步骤?
任何帮助表示赞赏。谢谢!
I'm a designer and not a coder and having issues with the first install.
I downloaded Rails 1.8.6 and Instant Rails.
I opened a console and tried updating gems. Nothing worked there.
I think I will just delete everything and start over because I'm sure I broke something by now. I was really thinking about buying a Mac today just to get it working.
What do you recommend for:
1. What EXACTLY to download?
2. Steps to take?
Any help is appreciated. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我在 Windows 7 上使用 Rails 进行开发已经一年多了,从未经历过因此而遇到的任何挫折。 这些说明一直非常适合我。
下载并安装 Ruby 1.8.7
http://rubyforge .org/frs/download.php/71492/rubyinstaller-1.8.7-p299.exe
下载最新的 RubyGems,并将文件解压到
http://rubyforge.org/frs/?group_id=126
打开命令提示符,cd 进入您提取的 RubyGems 目录,然后执行“ruby setub.rb “
在任何地方的命令行上运行“gem install Rails”
我不知道为什么这么多人反对 Rails/Windows。我认为 OS X 更容易,因为它已经安装了 Rails。另一方面,如果你混合使用 apt-get 和 gems 来安装库,Linux 就可以轻松提升你的环境。
I've been developing with Rails on Windows 7 for over a year and have never experienced any frustrations due to this. These instructions have always worked perfectly for me.
Download and install Ruby 1.8.7
http://rubyforge.org/frs/download.php/71492/rubyinstaller-1.8.7-p299.exe
Download the latest RubyGems, and extract the file somewhere
http://rubyforge.org/frs/?group_id=126
Open the command prompt, cd into the directory you extracted RubyGems too, and do "ruby setub.rb"
On the command line anywhere run "gem install rails"
I have no idea why so many people are anti Rails/Windows. I suppose OS X is easier since it comes with Rails already installed. Linux on the other hand you can easily jack up your environment if you mix up using apt-get and gems to install libraries.
老实说,我几乎只是下载 VirtualBox 并在其中安装 Ubuntu,然后使用 Rails 进行开发。当涉及到 Ruby/Rails/gems/等时,事情在 *nix 系统上工作得更好。 Windows 上的 Rails 开发比实际需要的更加痛苦。
To be honest I'd almost just download VirtualBox and install Ubuntu in it, then develop with Rails on there. Things just work better on *nix systems when it comes to Ruby/Rails/gems/etc. Rails development on Windows is more pain than it needs to be.
科迪是对的,但我有更多的话要说,无法在评论中表达。
Windows 上的 Rails 实在是太痛苦了。您不必购买一台闪亮的新 Mac(不过我确实喜欢我的 Mac)。我碰巧更喜欢在 Ubuntu 上开发 Rails 应用程序。如果您长期从事 Rails 开发,您可能会希望转向 Passenger。 Passenger 不在 Windows 上运行。
我的日常工作是编写 .net 代码,虽然 Mono 很棒,但我不会在 OS X 或 Linux 机器上开发针对 Windows 操作系统的应用程序。无论如何,我都不是一个粉丝——当我决定采用一种新的语言或框架时,我会做一些研究并找出最好的使用平台。我不想坐下来与 Ruby 或 Rails 进行斗争,因为 Windows 没有得到很好的支持 - 我将只使用基于 *nix 的机器并继续前进。在罗马的时候...
Cody's right, but I have more to say than will fit in a comment.
Rails on Windows just pain. You don't have to buy a shiny new Mac (I do like my Mac though). I happen to prefer developing Rails apps on Ubuntu. If you do Rails development for any extended period of time you'll probably want to move to Passenger. Passenger doesn't run on Windows.
My day job is writing .net code and while Mono is great, I wouldn't develop an application targeting a Windows OS on an OS X or Linux machine. I'm not a fanboy by any means - when I decide to take on a new language or framework, I do some research and find out the best platform to use. I don't want to sit and fight with Ruby or Rails because Windows isn't well supported - I'll just go with a *nix based machine and be on my way. When in Rome...