`
dogstar
  • 浏览: 273453 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

本地安装rails

阅读更多
由于rails对各个gem包有先后的以来关系,如下:

gem install activesupport-1.3.1.gem
gem install activerecord-1.14.4.gem
gem install actionpack-1.12.5.gem
gem install actionmailer-1.2.5.gem
gem install actionwebservice-1.1.6.gem
gem install rake-0.7.1.gem
gem install rails-1.1.6.gem
运行 rails -v 显示版本号,表示安装成功。



在WINDOWS下配置RadRails
[ 2007-01-11 11:44:36 | 作者: Admin ]
: | |
From RadRails go to Window > Preferences > Ruby > Installed Interpreters. Click the "Add" button. For "Interpreter Name" just put "Ruby" (name doesn't really matter). For the path put the path to your "ruby.exe" file. On my machine this path is "c:\ruby\bin\ruby.exe". Your path may be different depending on where you installed ruby.

Now on to rails and rake.

For rails goto Window > Preferences > Rails > Configuration. For the "rails path" you need to specify the complete path to the "rails" program (the "rails.cmd" file will not work). There should be a file in your ruby\bin directory called "rails" (no file extension) and there will also be a file called "rails.cmd". You want the "rails" file. My complete path looks like this "C:\ruby\bin\rails" (you will need to include the path AND the "rails" file not just c:\ruby\bin). The most common mistake I've seen is people setting the path to the rails.cmd file. This won't work.

For rake goto Window > Preferences > Rails > Configuration. For the "rake path" you need to specify the complete path to the "rake" program (the "rake.bat" or "rake.cmd" files will not work). There should be a file in your ruby\bin directory called "rake" (no file extension) and there will also be a file called "rake.cmd" and "rake.bat". You want the "rake" file. My complete path looks like this "C:\ruby\bin\rake" (you will need to include the path AND the "rake" file not just c:\ruby\bin). The most common mistake I've seen is people setting the path to the rake.bat or rake.cmd files. This won't work. If you don't have a file in your ruby/bin directory called "rake" try to do a "gem update rake" or "gem install rake" from the command line and that should fix it.

Want to make RI and RDOC work?

Goto Window > Preferences > Ruby > Ri/Rdoc. For RI put in something like "C:\ruby\bin\ri" (again, not the .bat file, just the plain Jane "ri" file) and for Rdoc put in something like "C:\ruby\bin\rdoc".

For those of you using mongrel and wanting to use mongrel servers within RadRails, you will need to specify the path to "mongrel_rails". Goto Window > Preferences > Rails > Configuration. My "mongrel path" looks like this "C:\ruby\bin\mongrel_rails". As with rake and rails, you do NOT want the "mongrel_rails.cmd" file.

附:
RadRails地址: http://www.radrails.org
RadRails运行需要Java Runtime Environment,可以到 http://www.java.com 下载。
分享到:
评论
1 楼 acnono 2008-10-10  
ども あぃがど ございます

相关推荐

    搭建Ruby on Rails开发环境

    确认Rails安装成功,可以通过`rails -v`查看其版本。 若选择本地安装Rails,需要下载Rails的gem文件和zip文件,放置在同一个目录下,然后在该目录下通过命令`gem install rails`进行安装。 对于Linux系统,搭建RoR...

    rails2.3.2gem本地安装包及使用说明

    如果你无法通过网络升级或安装 Rails,可以采用本地安装包的方式。以下是对 Rails 2.3.2 Gem 本地安装包及其使用说明的详细解读。 1. **Rails 2.3.2 版本特性** - Rails 2.3.2 在 2009 年发布,引入了许多增强功能...

    rails本地安装包完整版

    使用gem命令,用户可以直接安装这些本地的gem文件,快速搭建Rails 2.1.0的开发环境。在安装时,需要确保Ruby环境已就绪,并且具备相应的权限。通过这种方式,开发者可以立即开始使用Rails进行Web应用的开发工作。

    rails 的安装

    4. **验证Rails安装**: 安装完成后,你可以通过运行 `rails -v` 来检查Rails是否已正确安装,并查看其版本号。 5. **创建新的Rails项目**: 要创建一个新的Rails应用,运行 `rails new app_name`,这将生成一个...

    rails本地安装包

    接下来,我们将深入探讨Rails安装的关键步骤。 首先,安装Ruby。访问Ruby官方网站下载适合您操作系统的Ruby安装包,并按照指示进行安装。安装完成后,通过命令行检查Ruby版本,以确认安装成功。 接下来,我们需要...

    Ruby on Rails安装指南.docx

    《Ruby on Rails安装指南》是一份详尽的文档,旨在帮助用户在不同的环境下安装和配置Ruby on Rails开发环境。这份指南适用于使用Ruby 1.8.6和Rails 2.0.2版本的用户,虽然这些版本可能相对较旧,但其安装流程对于...

    rails本地安装包part2

    rails本地安装包 需要你在安装了ruby一键安装包后安装,内有安装命令步骤。 第一部分在: http://download.csdn.net/source/498734

    rails 离线安装包

    2. **本地安装Gem**:在下载完Rails的gem包后,你可以通过Ruby的gem命令行工具进行本地安装。在命令行中,切换到gem包所在的目录,然后运行`gem install rails-x.x.x.gem`。这将把Rails框架安装到你的系统上,无需...

    rails安装

    你可以使用`gem install --install-root PATH --no-ri --no-rdoc rails`来将Rails安装到指定目录,并且不生成文档,这样可以减少安装时间。PATH应替换为想要存放Rails gem的路径。 在Rails项目开发中,经常需要创建...

    ruby on rails2.0本地安装包

    这个“ruby on rails2.0本地安装包”适用于Windows和Linux操作系统,特别是针对网络速度较慢的用户设计,方便他们离线安装Rails 2.0.2版本。 在Rails 2.0版本中,有几个关键性的改进和特性: 1. **ActiveRecord**...

    ruby on rails与MySql的环境配置——支持rails 2.3.5以上版本

    下载该驱动后,在CMD中使用`gem install mysql-2.7.3-mswin32.gem --local`在本地进行安装。接着,你需要将MySQL安装目录下的`libmySQL.dll`文件复制到Ruby的bin目录。如果使用的是Ruby较低版本,还需将`mysql.so`...

    Rails本地(离线)bundle install

    使用Ruby On Rails开发时经常需要Bundle Install 但有些环境网络太慢或无法连接外网的时候就需要离线Bundle 该压缩包包括52个gem 其中有sqlite3,tzinfo-data等等

    rails2.3.8 && ruby1.8.7

    1. `sqlite3.dll` 和 `sqlite.dll`:这是SQLite数据库的动态链接库文件,SQLite是一个轻量级的嵌入式数据库,常用于Rails开发中的本地数据存储,特别是在开发阶段或者小型项目中。 2. `rubyinstaller-1.8.7-p249-rc2...

    ruby on rails 环境搭建

    - **Rails安装**:下载Rails的gem包和zip文件,然后在命令行中切换到文件所在目录,运行`gem install rails`进行安装。 在**Linux系统**下,特别是以Debian为代表的Linux发行版,搭建RoR开发环境涉及更多手动操作...

    rails本地安装包part1

    rails本地安装包 需要你在安装了ruby一键安装包后安装,内有安装命令步骤。 第二部分在: http://download.csdn.net/source/498739

    配置rails环境

    1. **安装Rails**:在已经安装好Ruby的系统上,可以通过Ruby Gem来安装Rails。在命令行输入`gem install rails`,等待安装完成。 2. **创建Rails项目**:使用`rails new`命令创建一个新的Rails应用。例如,`rails ...

    RAILS2.1的中文版资料

    通过这一特性,开发人员能够确保应用程序中的日期和时间能够准确地反映用户的本地时间设置。 **脏数据追踪(Dirty tracking)** 脏数据追踪是一种机制,用于跟踪模型对象的属性变化情况。在Rails 2.1中,脏数据...

    RVM+Ruby1.9.3+Rails3(1-Cygwin 安装配置)

    ### RVM + Ruby 1.9.3 + Rails 3 安装与配置指南 #### 一、前言 在 Windows 7 环境下搭建 Rails 3 开发环境是一项颇具挑战性的任务,尤其是当涉及到 Cygwin、Ruby、Rails 以及一系列其他必要的组件时。本文将详细...

Global site tag (gtag.js) - Google Analytics