How to install Ruby on rails in Windows 2003/xp 如何安装ROR
2011-02-10 22:55
1171 查看
开始学习ROR,安装是个麻烦事,像我这样初学者还真摸到头脑,这里记一下,方便以后的新同学。2011新年实验成功。
Ruby on rails 是两个东西,Ruby是一套解释语言,Rails是构架在Ruby上一个框架,所以安装要涉及两家的东西,两家的网站,还有什么相关网站一大堆,网上安装教程基本都过期了。新版本步骤已经改了。
首先哪都别去,就去http://rubyonrails.org/download
上面写了很清楚了,一步步下来就行了,先装Ruby,再更新Rubygems(记得下zip),再自动安装Rails,
最后,这里部署新目录,新语法多了个new, 输入rails new myApp, 不是以前的rails myApp。
调出命令窗口,直接在开始运行打“cmd” 的命令窗口是没有用的。
要去开始>程序> Ruby 1.9.2 > Start Command Prompt with Ruby
还有,命令窗口部署新程序完成后,需要转到新目录下c:/myApp,启动服务,输入 rails server,不是以前的rails script/server。
一般来说就没问题,不过我又出现问题,could not find gem 'sqlite3-ruby.dll' ,OMG,疯了,没法子,去找,
在这里http://www.sqlite.org/download.html
sqlite-dll-win32-x86-3070500.zip
(274.65 KiB)
下载下来后,解压到c:/Ruby192/bin下面
最后,IE里输入localhost:3000,成功,
Ruby on rails 是两个东西,Ruby是一套解释语言,Rails是构架在Ruby上一个框架,所以安装要涉及两家的东西,两家的网站,还有什么相关网站一大堆,网上安装教程基本都过期了。新版本步骤已经改了。
首先哪都别去,就去http://rubyonrails.org/download
上面写了很清楚了,一步步下来就行了,先装Ruby,再更新Rubygems(记得下zip),再自动安装Rails,
最后,这里部署新目录,新语法多了个new, 输入rails new myApp, 不是以前的rails myApp。
调出命令窗口,直接在开始运行打“cmd” 的命令窗口是没有用的。
要去开始>程序> Ruby 1.9.2 > Start Command Prompt with Ruby
还有,命令窗口部署新程序完成后,需要转到新目录下c:/myApp,启动服务,输入 rails server,不是以前的rails script/server。
一般来说就没问题,不过我又出现问题,could not find gem 'sqlite3-ruby.dll' ,OMG,疯了,没法子,去找,
在这里http://www.sqlite.org/download.html
sqlite-dll-win32-x86-3070500.zip
(274.65 KiB)
下载下来后,解压到c:/Ruby192/bin下面
最后,IE里输入localhost:3000,成功,
Welcome aboard
You’re riding Ruby on Rails!
完事。还是麻烦,直接一个安装包得了,在安装部署花时间很不值得。相关文章推荐
- How to Install PHP 5 for Iis 6 on Windows Xp and 2003 - wikiHow
- How to install Ruby on Rails in Ubuntu 11.10
- windows下python如何安装模块或包? How to install package or module in windows OS when using PYTHON?
- FIX: Error message when you try to install a large Windows Installer package or a large Windows Installer patch package in Windows Server 2003 or in Windows XP: "Error 1718. File was rejected by digital signature policy"
- How to install Nagios in ubuntu10.04/10.10(如何安装nagios)
- how to test observe with rspec in ruby on rails.
- windows 10中的ubuntu子系统安装桌面环境的方法(How to install Ubuntu-desktop in windows 10 Subsystem for Linux)
- Howto Install Windows XP / Vista on Xen
- Ruby on Rails Session 2: How to install Aptana Studio 3 on Ubuntu 12.04 LTS
- 如何在windows NT 下安装jboss为服务?(How to install jboss as Windows NT OS Service?)
- How to Generate PDF in Ruby on Rails(HowtoGeneratePDFs) ZT
- Mac如何通过Xcode安装GCC编译器 How to install gcc on mac with xcode
- [译]How to Install Node.js on Ubuntu 14.04 如何在ubuntu14.04上安装node.js
- How to install Redmine on CentOS- 在CentOS上如何安装Redmine
- (转)How to Install Xcode, Homebrew, Git, RVM, Ruby & Rails on Snow Leopard, Lion, and Mountain Lion
- How to use Pageheap.exe in Windows XP, Windows 2000, and Windows Server 2003
- How to fix the “msvcrt-ruby18.dll is missing from your computer” error message in Ruby on Rails
- How to Install Xcode, Homebrew, Git, RVM, Ruby & Rails on Snow Leopard, Lion, Mountain Lion, and Mavericks
- How to install ruby on mac/ change ruby source in china
- iOS 如何在苹果电脑上安装svn 服务器(how to install svn server on the computer of mac os x)