打印

rails1.2.1 本地安装方法与安装包下载

本主题由 jerry 于 2008-1-13 13:24 置顶

rails1.2.1 本地安装方法与安装包下载

由于众所周知的原因,gem 远程安装最新的rails非常困难,这里提供rails1.2.1的安装包下载,为大家提供便利

安装方法:
1、从附件下载所有gem
activesupport-1.4.0.gem
activerecord-1.15.1.gem
actionpack-1.13.1.gem
actionmailer-1.3.1.gem
actionwebservice-1.2.1.gem
rails-1.2.1.gem

2、依次运行
gem install activesupport-1.4.0.gem
gem install activerecord-1.15.1.gem
gem install actionpack-1.13.1.gem
gem install actionmailer-1.3.1.gem
gem install actionwebservice-1.2.1.gem
gem install rails-1.2.1.gem

3、清除老版本
gem cleanup

执行rails -v
Rails 1.2.1
安装成功
附件: 您所在的用户组无法下载或查看附件

TOP

相关安装包下载
附件: 您所在的用户组无法下载或查看附件

TOP

rails1.2.1还需要依赖rake-0.7.1.gem,如果以前安装了rails1.1.6那么rake-0.7.1已经存在了

如果是全新安装,这个附件会比较有用
附件: 您所在的用户组无法下载或查看附件

TOP

我来顶一下,谢了先```

TOP

非常感谢!,从网上升级总是失败,网络太差了

TOP

回复 #2 railschina 的帖子

F:\Ruby\>gem install activerecord-1.15.1.gem
ERROR:  Error installing gem activerecord-1.15.1.gem[.gem]: buffer error

不知道这里所指的buffer error是什么意思?哪位大虾有解?谢谢。

[ 本帖最后由 slmeng 于 2007-1-28 23:06 编辑 ]

TOP

运行

ruby -v
gem -v

贴出来

TOP

回复 #7 railschina 的帖子

F:\Ruby\>ruby -v
ruby 1.8.2 (2004-12-25) [i386-mswin32]

F:\Ruby\>gem -v
0.9.1

谢谢。

TOP

最好把ruby升级到最新的1.8.5,可能是zlib库的问题

或者

Edit C:\Program Files\Ruby\lib\ruby\site_ruby\1.8\rubygems\package.rb:610 :

-if Zlib::ZLIB_VERSION < '1.2.1'
+if Zlib::ZLIB_VERSION <= '1.2.1'

上面是从国外论坛看到的

TOP

回复 #8 slmeng 的帖子

好像是版本的问题,我把ruby升级到ruby 1.8.4 (2006-04-14) [i386-mswin32], 就可以装了。
多谢。不过,其间还看到这样的出错信息,不知道是否会对后面的开发有影响。

F:\Ruby\>gem install activesupport-1.4.0.gem
Successfully installed activesupport, version 1.4.0
Installing ri documentation for activesupport-1.4.0...

lib/active_support/dependencies.rb:52:16: Unrecognized directive 'nodoc'
Installing RDoc documentation for activesupport-1.4.0...

lib/active_support/dependencies.rb:52:16: Unrecognized directive 'nodoc'



F:\Ruby\>gem install actionpack-1.13.1.gem
Successfully installed actionpack, version 1.13.1
Installing ri documentation for actionpack-1.13.1...

lib/action_controller/routing.rb:1050:30: ':' not followed by identified or oper
ator

lib/action_controller/routing.rb:1054:39: ':' not followed by identified or oper
ator
Installing RDoc documentation for actionpack-1.13.1...

lib/action_controller/routing.rb:1050:30: ':' not followed by identified or oper
ator

lib/action_controller/routing.rb:1054:39: ':' not followed by identified or oper
ator

TOP