结果发现问题:$ wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz $ tar xzvf ruby-1.9.3-p0.tar.gz $ cd ruby-1.9.3-p0 $ ./configure --prefix=/usr/local --enable-shared --disable-install-doc --with-opt-dir=/usr/local/lib $ make $ make install
It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.
从源码安装
然后再清理 ruby-1.9.3-p0里面的安装文件,重新来一遍,总算ruby安装成功!$ wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz $ tar xzvf yaml-0.1.4.tar.gz $ cd yaml-0.1.4 $ ./configure --prefix=/usr/local $ make $ make install
git clone https : //github.com/steelThread/redmon.gitcd redmonbundler install提示如下错误:
Fetching source index for http://rubygems.org/ Could not reach rubygems repository http://rubygems.org/ Could not find multi_json-1.0.4 in any of the sources
太多302跳转之类的了,国内对外这些技术网站的访问越来越困难,IT民工情何以堪!![#16 root@com8-16 redmon]# gem install activesupport -r -V GET http://rubygems.org/latest_specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/latest_specs.4.8.gz connection reset after 1 requests, retrying GET http://production.s3.rubygems.org/latest_specs.4.8.gz connection reset after 1 requests, retrying GET http://rubygems.org/quick/Marshal.4.8/activesupport-3.1.3.gemspec.rz connection reset after 2 requests, retrying GET http://rubygems.org/quick/Marshal.4.8/activesupport-3.1.3.gemspec.rz 302 Found GET http://production.cf.rubygems.org/quick/Marshal.4.8/activesupport-3.1.3.gemspec.rz 200 OK GET http://rubygems.org/specs.4.8.gz 302 Found GET http://production.s3.rubygems.org/specs.4.8.gz
激动人心的时刻终于来了![#16 root@com8-16 redmon]# bundle install Fetching source index for http://rubygems.org/ Using rake (0.9.2.2) Using multi_json (1.0.4) Using activesupport (3.1.3) Installing bson (1.5.2) Installing bson_ext (1.5.2) with native extensions Installing chronic (0.6.6) Installing daemons (1.1.5) Installing delorean (1.2.0) Installing diff-lcs (1.1.3) Installing hiredis (0.3.2) with native extensions Installing em-hiredis (0.1.0) Installing eventmachine (0.12.10) with native extensions Installing haml (3.1.4) Installing i18n (0.6.0) Installing rack (1.4.0) Installing rack-protection (1.2.0) Installing rack-test (0.6.1) Installing redis (2.2.2) Installing tilt (1.3.3) Installing sinatra (1.3.2) Installing thin (1.3.1) with native extensions Using redmon (0.0.1) from source at . Installing rspec-core (2.6.4) Installing rspec-expectations (2.6.0) Installing rspec-mocks (2.6.0) Installing rspec (2.6.0) Installing shoulda (2.11.3) Using bundler (1.0.21) Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed
DEFAULT_OPTS = { :redis_url => 'redis://127.0.0.1:6379', :namespace => 'redmon', :web_interface => ['0.0.0.0', 4567], :worker => true, :poll_interval => 10


bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)来获取RVM 来进行安装。
rvm install 1.9.3