在Windows 7上安装Ruby on Rails(最新) [英] Installing Ruby on Rails for Windows 7 (up to date)

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

问题描述

我是设计师,而不是编码员,第一次安装时遇到了问题.

我下载了Rails 1.8.6和Instant Rails.

我打开了一个控制台,并尝试更新gem.那里什么都没有.

我想我将删除所有内容并重新开始,因为我确定我现在已经破坏了某些内容.我真的在考虑今天要购买Mac,以使其正常工作.

您建议做什么: 1.确切下载什么? 2.要采取的步骤?

感谢您的帮助.谢谢!

解决方案

我已经在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来混合安装库,则可以轻松提升环境.

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!

解决方案

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.

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

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