如何使用RVM逐步安装Rails

时间:2015-10-15 13:33:32

标签: ruby-on-rails ruby rubygems linuxmint

我用过

\curl -v -sSL https://get.rvm.io | bash -s stable --rails

安装Rails,但它在不同点失败(间歇性网络故障)。

如何使用相当于运行上述命令的RVM以小位安装Rails:

ruby-2.2.1 -
#compiling...............................................................................
ruby-2.2.1 - #installing............................ ruby-2.2.1 -
#making binaries executable.. ruby-2.2.1 - #downloading rubygems-2.4.8   % Total    % Received % Xferd  Average Speed   Time    Time     Time 
Current
                                Dload  Upload   Total   Spent    Left  Speed 100  437k  100  437k    0     0   126k      0  0:00:03  0:00:03
--:--:--  126k No checksum for downloaded archive, recording checksum in user configuration. ruby-2.2.1 - #extracting rubygems-2.4.8....
ruby-2.2.1 - #removing old rubygems......... ruby-2.2.1 - #installing
rubygems-2.4.8...................... ruby-2.2.1 - #gemset created
/home/user/.rvm/gems/ruby-2.2.1@global ruby-2.2.1 - #importing gemset
/home/user/.rvm/gemsets/global.gems...............................................
ruby-2.2.1 - #generating global wrappers........ ruby-2.2.1 - #gemset
created /home/user/.rvm/gems/ruby-2.2.1 ruby-2.2.1 - #importing
gemsetfile /home/user/.rvm/gemsets/default.gems evaluated to empty gem
list ruby-2.2.1 - #generating default wrappers........ ruby-2.2.1 -
#adjusting #shebangs for (gem irb erb ri rdoc testrb rake). Install of ruby-2.2.1 - #complete  Ruby was built without documentation, to build
it run: rvm docs generate-ri Creating alias default for ruby-2.2.1...
Fetching: thread_safe-0.3.5.gem (100%) Successfully installed
thread_safe-0.3.5 Fetching: tzinfo-1.2.2.gem (100%) Successfully
installed tzinfo-1.2.2 Fetching: i18n-0.7.0.gem (100%) Successfully
installed i18n-0.7.0 Fetching: activesupport-4.2.4.gem (100%)
Successfully installed activesupport-4.2.4 Fetching:
rails-deprecated_sanitizer-1.0.3.gem (100%) Successfully installed
rails-deprecated_sanitizer-1.0.3 Fetching: mini_portile-0.6.2.gem
(100%) Successfully installed mini_portile-0.6.2 Fetching:
nokogiri-1.6.6.2.gem (100%) Building native extensions.  This could
take a while... Successfully installed nokogiri-1.6.6.2 Fetching:
rails-dom-testing-1.0.7.gem (100%) Successfully installed
rails-dom-testing-1.0.7 Fetching: loofah-2.0.3.gem (100%) Successfully
installed loofah-2.0.3 Fetching: rails-html-sanitizer-1.0.2.gem (100%)
Successfully installed rails-html-sanitizer-1.0.2 Fetching:
erubis-2.7.0.gem (100%) Successfully installed erubis-2.7.0 Fetching:
builder-3.2.2.gem (100%) Successfully installed builder-3.2.2
Fetching: actionview-4.2.4.gem (100%) Successfully installed
actionview-4.2.4 Fetching: rack-1.6.4.gem (100%) Successfully
installed rack-1.6.4 ERROR:  While executing gem ...
(OpenSSL::SSL::SSLError)
    SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read server hello A

1 个答案:

答案 0 :(得分:1)

如果您想使用我的shell脚本为rails development https://github.com/navinspm/easy_rails

安装所有必需的文件