mac下需要brew install ruby。 git clone https://github.com/rubygems/rubygems.git cd rubygems/bin/ ./gem install innodb_ruby