防火墙内RubyOnRails安装手记

来源:互联网 发布:金融数据 解读 贵金属 编辑:程序博客网 时间:2024/05/17 22:31
        今天本来是安装komodo,安装完以后要设置语言智能设置,一看有ruby,就顺便把下了很久的rubyonrails也装了一下,说一下版本吧:
      ruby:ruby185-21.exe
     rubygems:rubygems-0.9.0.zip
     顺便解压了那个radrails-0.7.1-win32.zip,原来这个不是插件,而是一个基于eclipse方式的IDE.
    安装rails,单机安装需要下载繁复的配套gem文件,网络安装:在公司上网,都是通过代理服务器,试了一下gem install rails命令出现的提示,查到这个页面http://rubyforge.org/tracker/index.php?func=detail&aid=5020&group_id=126&atid=575,根据这个页面找到 GemRails in Ruby on Rails ,根据两个页面的提示,最后通过在计算机属性中设置环境变量: HTTP_PROXY=http://your.proxy.hear:port,然后采用gem install rails -y -p "http://your.proxy.hear:port"命令安装成功,其中为了解决协议验证的问题,我使用了原先装在本机的ccproxy代理作为一个一级代理,成功安装:
D:/RubyonRails>gem install rails -y -p "http://172.17.34.115:808"
Successfully installed rails-1.1.6
Successfully installed activesupport-1.3.1
Successfully installed activerecord-1.14.4
Successfully installed actionpack-1.12.5
Successfully installed actionmailer-1.2.5
Successfully installed actionwebservice-1.1.6
Installing ri documentation for activesupport-1.3.1...
While generating documentation for activesupport-1.3.1
... MESSAGE:   Unhandled special: Special: type=17, text="<!-- HI -->"
... RDOC args: --ri --op D:/RubyonRails/ruby/lib/ruby/gems/1.8/doc/activesupport
-1.3.1/ri --quiet lib
(continuing with the rest of the installation)
Installing ri documentation for activerecord-1.14.4...
Installing ri documentation for actionpack-1.12.5...
While generating documentation for actionpack-1.12.5
... MESSAGE:   Unhandled special: Special: type=17, text="<!-- The header part o
f this layout -->"
... RDOC args: --ri --op D:/RubyonRails/ruby/lib/ruby/gems/1.8/doc/actionpack-1.
12.5/ri --quiet lib
(continuing with the rest of the installation)
Installing ri documentation for actionmailer-1.2.5...
Installing ri documentation for actionwebservice-1.1.6...
Installing RDoc documentation for activesupport-1.3.1...
Installing RDoc documentation for activerecord-1.14.4...
Installing RDoc documentation for actionpack-1.12.5...
Installing RDoc documentation for actionmailer-1.2.5...
Installing RDoc documentation for actionwebservice-1.1.6...

D:/RubyonRails>
ps:对于这种命令行安装的网络安装部署更新方式,感觉:有利有弊。
原创粉丝点击