安装innodb_space

先下载 rubygems-1.8.25.tgz
安装
各种错误
[root@mysql_node1 rubygems-1.8.5]# ruby setup.rb
./lib/rubygems.rb:334: warning: parenthesize argument(s) for future version
./lib/rubygems.rb:511: warning: parenthesize argument(s) for future version
./lib/rubygems/dependency_list.rb:8:in `require': ./lib/rubygems/deprecate.rb:53: syntax error (SyntaxError)
     define_method name do |*args, &block| # TODO: really works on 1.8.7?
                                  ^
./lib/rubygems/deprecate.rb:54: syntax error
./lib/rubygems/deprecate.rb:63: syntax error
./lib/rubygems/deprecate.rb:68: syntax error    from ./lib/rubygems/dependency_list.rb:8
       from ./lib/rubygems.rb:29:in `require'
       from ./lib/rubygems.rb:29
       from setup.rb:27:in `require'
       from setup.rb:27
[root@mysql_node1 rubygems-1.8.5]# ruby --version
ruby 1.8.5 (2006-08-25) [i386-linux]
ruby的版本太低了。换上ruby的1.8.7
升级ruby 删掉原来的
下载了:stable-snapshot.tar.gz
解压,安装。。。。
[root@mysql_node1 ~]# ruby --version
ruby 2.0.0p248 (2013-06-28 revision 41690) [i686-linux]
新版本ruby安装结束
重新安装 rubygems
[root@mysql_node1 rubygems-1.8.5]# ruby setup.rb
RubyGems 1.8.5 installed

锘?== 1.8.4 / 2011-05-31

* 1 minor enhancement:

 * The -u option to 'update local source cache' is official deprecated.
 * Remove has_rdoc deprecations from Specification.

* 2 bug fixes:

 * Handle bad specs more gracefully.
 * Reset any Gem paths changed in the installer.


------------------------------------------------------------------------------

RubyGems installed the following executables:
       /usr/local/bin/ gem
下面是安装

innodb_ruby

之前命令报错。
google
[root@mysql_node1 ~]# gem list -r
.....
[root@mysql_node1 ~]# gem sources
*** CURRENT SOURCES ***

http://rubygems.org/
[root@mysql_node1 ~]# gem install innodb_ruby
Fetching: bindata-1.5.0.gem (100%)
Fetching: innodb_ruby-0.7.11.gem (100%)
Successfully installed bindata-1.5.0
Successfully installed innodb_ruby-0.7.11
2 gems installed
Installing ri documentation for bindata-1.5.0...
Installing ri documentation for innodb_ruby-0.7.11...
Installing RDoc documentation for bindata-1.5.0...
Installing RDoc documentation for innodb_ruby-0.7.11...
[root@mysql_node1 ~]# whereis innodb_space
innodb_space: /usr/local/bin/innodb_space
成功安装完。


你可能感兴趣的:(innod_space)