`
xw302
  • 浏览: 122696 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Installing rails on Windows7

    博客分类:
  • ROR
阅读更多
按照官网安装

Install steps:
1.install ruby
  安装RubyInstaller
2.install rails
Windows Start ! Run..., enter cmd, and click OK.
C:\Ruby193\bin\gem install rails

3.install sqlite3
下载
• Command-line shell for accessing and modifying SQLite databases
• DLL of the SQLite library
解压并拷贝C:\Ruby193\bin下,然后:
gem install sqlite3


4.建立一个工程
cd work
rails new demo
rails server(没有其它web server情况下,有则rails server webrick)


访问:http://localhost:3000.

问题一:
Installing ri documentation for i18n-0.6.0...
unable to convert U+00E4 from UTF-8 to GBK for lib/i18n/tests/interpolation.rb,
skipping
unable to convert "\xC2" to UTF-8 in conversion from ASCII-8BIT to UTF-8 to GBK
for lib/i18n.rb, skippingInstalling on Windows

原因是没有安装:Development-Kit
下载地址:https://github.com/oneclick/rubyinstaller/wiki/Development-Kit
安装步骤:
 1.Extract Files <DEVKIT_INSTALL_DIR>
 2.cd <DEVKIT_INSTALL_DIR>
 3.ruby dk.rb init to generate the config.yml
 4.edit the generated config.yml(查看是否包含已安装的ruby,没有则手动添加)
 5.ruby dk.rb review
 6.ruby dk.rb install
 7.gem install rdiscount --platform=ruby  (这一步是测试是否安装成功)
Temporarily enhancing PATH to include DevKit...


安装成功后在重新在工程目录下Bundle install,例如:C:\Ruby193\work\demo\Bundle install
分享到:
评论

相关推荐

    Installing Your Driver on Windows Millennium

    Installing Your Driver on Windows Millennium INF File Guide

    Installing And Configuring Windows Server 2012 Exam Ref 70-410

    根据提供的文件信息,本书《Installing and Configuring Windows Server 2012 Exam Ref 70-410》是一本针对Microsoft认证考试70-410的专业辅导教材。本书由Craig Zacker编写,并由Microsoft Press出版。以下是本书中...

    Installing and Configuring Windows Server 2012 R2

    - 如果一台计算机运行的是64位的Windows Server 2008或Windows Server 2008 R2,则可以升级到Windows Server 2012 R2,前提是使用相同的操作系统版本。 - Windows Server 2012 R2不支持以下升级路径: - 从...

    Exam Ref 70-410: Installing and Configuring Windows Server 2012 R2

    Fully updated for Windows Server 2012 R2! Prepare for Microsoft Exam 70-410 – and help demonstrate your real-world mastery of implementing and configuring core services in Windows Server 2012 R2. ...

    Microsoft Windows 2000 Scripting Guide - Installing Software on a Remote Computer

    Microsoft Windows 2000 Scripting Guide - Installing Software on a Remote Computer

    Beginning Ruby on Rails

    Ruby on Rails is the revolutionary online programming tool that makes creating functional e-commerce web sites faster and easier than ever. With the intuitive, straightforward nature of Ruby and the ...

    Exam 70-410 Installing and Configuring Windows Server 2012 Lab Manual

    根据提供的文件信息,我们可以得出《Exam 70-410 Installing and Configuring Windows Server 2012 Lab Manual》是一本针对微软认证考试70-410的专业实验手册,该手册主要围绕Windows Server 2012的安装与配置进行...

    Docker on Windows

    You will start by installing Docker on different versions of Windows and Windows Server, and run a simple container to verify that the setup is working correctly. You will see how to build Docker ...

    Agile Web Development with Rails Final

    - Installing Rails on Windows requires setting up Ruby, installing gems like `bundler`, and configuring the environment. Developers often use tools like RubyInstaller and DevKit for Windows. 2. **...

    mysql安装配置教程 - Installing MySQL 5.7 on Windows for Specify

    本文档主要介绍了如何在Windows操作系统上安装并配置MySQL 5.7,特别适用于那些独立工作站(如运行Windows 7/8/10的操作系统),并且这些工作站主要用于单用户操作,而不是作为共享服务器提供多用户访问的情况。...

    Training Guide Installing and Configuring Windows Server 2012

    - **Training Guide Installing and Configuring Windows Server 2012**:此标题明确指出这是一本关于安装与配置Windows Server 2012的培训指南。 - **70-410 Training Guide Installing and Configuring Windows ...

    Exam Ref 70-410 Installing and Configuring Windows Server 2012

    Exam Ref 70-410 Installing and Configuring Windows Server 2012

    Exam Ref 70-698 Installing and Configuring Windows 10 epub

    Exam Ref 70-698 Installing and Configuring Windows 10 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除

    Installing RAC on AIX

    按照文档指引,这一部分从第7页开始,详细描述了安装流程,包括配置网络、存储以及集群参数。 #### 安装Patchset 在完成基本安装后,安装Clusterware的Patchset是必要的,这一步骤在文档的第20页有详细说明。...

    windows下安装或升级rails

    在 Windows 平台上进行 Ruby on Rails 开发时,可能会遇到各种各样的安装问题。本文将详细解释一个常见的问题:“在 Windows 下安装或升级 Rails 时,gem 命令提示需要更新 PATH 或下载 DevKit”,并提供详细的解决...

    ruby on rails安装环境.txt

    标题与描述均提到了“ruby on rails安装环境”,这表明文档主要关注的是如何在特定的环境中设置Ruby on Rails。Ruby on Rails(常简称为Rails)是一种用于开发Web应用程序的开源框架,采用Ruby语言编写,遵循MVC...

Global site tag (gtag.js) - Google Analytics