没有最新的指南在Windows 7上安装最新版本的Rails [英] No up to date guides for installing latest version of Rails on Windows 7

查看:135
本文介绍了没有最新的指南在Windows 7上安装最新版本的Rails的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我查看了当前类似问题的答案,但仍无法找到我正在寻找的信息。



尽管有无数的设置指南看来并没有那么多的更新。 Ruby 1.9.2的最新安装似乎与RubyGems一起提供,但我似乎无法通过运行命令 gem install rails


来安装它

最重要的是,我阅读了一些建议建立Linux环境的指南。我甚至困惑于使用SQLite3或MySQL的数据库。

我的问题是,在Windows 7上如何快速安装Rails,我应该使用哪个数据库以及是否值得安装VM?任何最新的指南也将不胜感激。我想有最适合的环境来开始。

解决方案

我从Windows开始,使用Ruby / Rails一个月,然后决定在Ubuntu下使用Rails在VirtualBox下,使用腻子来遥控它。


  • MySQL安装在Windows上(这样VM不会变得太慢)。

  • 所有代码都在VBox可访问的Windows驱动器上,其他所有与Rails相关的代码都在Ubuntu上。



所有这些都让我:


  • 使用我的Windows 7光滑(IMO)GUI

  • 使用我的BeyondCompare,TortoiseGit
  • / li>
  • 学习linux(如下所述)
  • 在社区中提出更好的问题/获得更多答案(每个人都假设 ;)你已经在Linux或Mac上得到了Rails),因为每个人似乎都在使用* nix。



对我来说,在Windows上不使用Ruby / Rails是有意义的,特别是因为托管一个Rails应用程序将99.999%在Linux机器上。所以,你将会学习linux / Ubuntu,并且可以更好地准备好托管时间。 Bonus in resume +在问路时不会丢失,也不会怀疑这个问题是否因为我使用Windows而安装这个宝石?。

另外,我注意到在Ubuntu中运行像rake这样的操作比在Windows中快2-3倍。现在我认为学习linux是件好事。我必须说,Linux擅长命令行,我有点喜欢现在使用它。 Linux / Ubuntu在GUI上非常吸引人(即时通讯非常强大的O!)。




哦,对于Windows上的Ruby / Rails,尝试 Pik (这是 RVM - Ruby Version Manager )。 Windows,我遇到安装RSpec的问题; WebBRICK中的例外;无法使用imagemagick;以及其他我很高兴忘记的小东西。

I've looked around the current answers for similar questions but still couldn't find the information I was looking for.

While there are countless guides to setting up rails, it seems there aren't that many which are up to date. The latest installation of Ruby 1.9.2 seems to come with RubyGems but I can't seem to install it by running the command gem install rails

On top of this I've read guides recommending to establish a linux environment. I'm even confused to what database to use "SQLite3" or "MySQL".

My question, is how the heck do I get Rails installed quickly on Windows 7, what database should I use with it and also whether it's worth installing a VM? Any up to date guides would also be appreciated. I'd like to have the most suitable environment to get started.

解决方案

I started out with Windows, used Ruby/Rails for a month, then decided to go with Rails on Ubuntu under VirtualBox, using Putty to remote to it.

  • MySQL is installed on Windows (so that the VM doesn't become too slow).
  • All code is on VBox accessible Windows drive, everything else Rails-related is on Ubuntu.

All this lets me:

  • Use Ruby/Rails in it's "native" place i.e. *nix
  • Use my Windows 7 slick (IMO) GUI
  • Use my BeyondCompare, TortoiseGit
  • Learn linux (as mentioned below also)
  • Ask better questions / get more answers in the community (where everyone assumes ;) that you've either got Rails on Linux or a Mac) since everyone seems to be using *nix.

To me, it makes sense to not use Ruby/Rails on Windows, especially since hosting a Rails app will 99.999% be on a linux box. So, you will get to learn linux/Ubuntu and can be better prepared come hosting time. Bonus in resume + you won't be lost when asking questions down the road, and not wonder "is this problem installing this gem because I am using Windows?".

Also, I noticed that running things like rake was 2-3 times faster in Ubuntu than in Windows. And now I think it is good to have learnt linux. I must say linux excels at the command line, and I kind of like using it now. Linux/Ubuntu sucks at GUI (IM very strong O!).


Oh, and for Ruby/Rails on Windows, give Pik a try (it's the Windows version of RVM - Ruby Version Manager).

And just for the record, on Windows, I faced problems with installing RSpec; exceptions in WebBRICK; could not use imagemagick; and other small things I am glad to have forgotten.

这篇关于没有最新的指南在Windows 7上安装最新版本的Rails的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆