Install innodb_ruby and centosinnodb_ruby in centos 6
Innodb_ruby is a program of jeremycole used to analyze Innodb-related structures. It is also a very convenient structure tool for us to study Innodb. So here is an introduction.
Jeremycole github shared projects are very good, here directly recommend his github: https://github.com/jeremycole
Innodb_ruby depends on ruby> = 1.9.3. The default yum version of Centos is relatively low. To manually compile the image, we recommend you download it from the ruby-china image (https://ruby-china.org/wiki/ruby-mirror:
# Wget https://cache.ruby-china.org/pub/ruby/ruby-1.9.3-p551.tar.gz
Install the dependency package before installation:
# Yum-y install zlib-devel curl-devel openssl-devel httpd-devel apr-util-devel
If mysql is not installed in the system, install the mysql-devel package.
Tar zxvf ruby-1.9.3-p551.tar.gzcd ruby-1.9.3-p551./configuremakemake install
After Ruby is installed, innodb_ruby can be installed.
Gem install innodb_ruby
After the prompt is successful, you can start the journey to innodb_ruby.
Reference help: https://github.com/jeremycole/innodb_ruby/wiki
Innodb is fun.
Note: The preceding command must be executed in datadir. Have fun.