使用 windows 或 linux 开始使用 Ruby On Rails? [英] Use windows or linux to start work with Ruby On Rails?

查看:41
本文介绍了使用 windows 或 linux 开始使用 Ruby On Rails?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Ruby On Rails 的新手,我想知道哪个更适合使用它.Windows 或 Linux.我以前从未使用过 Linux,但我听说使用它更好.是不是像我这样的人有必要装linux还是我用windows,结果和linux一样?

I'm new to Ruby On Rails and I want to know which is better to use for work with it. Windows or Linux. I've never worked with Linux before but I heard It's better to work with it. Is it necessary for someone like me to install linux or I can use windows and the results will be same with linux?

推荐答案

如果您当前的开发机器运行的是 Windows,而您现在无法访问 Linux 环境,请不要让它阻止您开始与导轨.绝对绝对绝对首先安装 DevKit(如果它还没有包含在 RubyInstaller 中).请参阅 https://github.com/oneclick/rubyinstaller/wiki/Development-Kit 为此.

If your current dev machine is running Windows, and you don't have access to a Linux environment right now, don't let that stop you from getting started with Rails. Definitely, definitely, definitely install the DevKit first thing (if it's not included in RubyInstaller yet). See https://github.com/oneclick/rubyinstaller/wiki/Development-Kit for that.

如果您深入了解 Rails 开发,甚至开始以此为生,您将不可避免地倾向于在您的开发机器上使用 Linux.问题不在于 Rails,而在于许多在 Windows 上很难或不可能安装的二进制 gem.

If you get deep into Rails development, or even start doing it for a living, you will inevitably drift towards using Linux on your dev machine. The problem is not Rails, but the many binary gems which are difficult or impossible to install on Windows.

最流行的用于操作图像(即生成缩略图)的 Ruby 库是 RMagick,但尝试将其安装在 Windows 上就足以让强者哭泣.Paperclip 非常非常适合处理图像和其他附件,但这也是一个问题.然后有一个流行的 JSON 解析库,它在 Windows 上也有问题.Unicorn(一种流行的 Rails 服务器)根本无法在 Windows 上运行,而 Thin(我最喜欢的)也可能让您头疼.依此类推.

The most popular Ruby library for manipulating images (ie. generating thumbnails) is RMagick, but trying to install it on Windows is enough to make a strong man cry. Paperclip is very nice for dealing with images and other attachments, but it is also a problem. Then there is a popular JSON parsing library which is also problematic on Windows. Unicorn (a popular Rails server) won't run at all on Windows, and Thin (my favorite) may also give you headaches. And so on, and so on.

如今,您可以在 Windows 上进行 Rails 开发,但有时您会发现自己必须在远程服务器上而不是在本地测试代码,这可能会浪费大量时间.

You can get pretty far with Rails development on Windows these days, but at times you will find yourself having to test code on a remote server, rather than locally, and it can waste a lot of time.

这篇关于使用 windows 或 linux 开始使用 Ruby On Rails?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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