Installing rails on Windows7_Ruby_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > Ruby > Installing rails on Windows7

Installing rails on Windows7

 2012/3/13 15:28:35  xw302  程序员俱乐部  我要评论(0)
  • 摘要:按照官网安装Installsteps:1.installruby安装RubyInstaller2.installrailsWindowsStart!Run...,entercmd,andclickOK.C:\Ruby193\bin\geminstallrails3.installsqlite3下载?Command-lineshellforaccessingandmodifyingSQLitedatabases?DLLoftheSQLitelibrary解压并拷贝C:\Ruby193\bin下
  • 标签:windows7 Windows rails all
按照官网安装

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
发表评论
用户名: 匿名