Wednesday, September 19, 2012

How to install ruby, rubygems and libyaml

Following are the commands which can be used to install the ruby with rubygems and libyaml:

To install ruby use the following commands:
  tar -xvf ruby-1.9.3-p194.tar.gz  
  cd ruby-1.9.3-p194  
  make install  
  ruby -v  

To check if your ruby is correctly working or not create a test ruby script and run it:
  vi test.rb  
Use the following code for test purpose:
  #!/usr/bin/env ruby  
 puts "Ruby working Fine:)"  
Give the ruby script execute permission and run the script to see if ruby is working fine or not:
 chmod +x test.rb  

To install rubygems use the following commands:
 tar -xvzf rubygems-1.8.24.tgz  
 cd rubygems-1.8.24  
 ruby setup.rb  
 gem -v  

If you get an error regarding the libyaml dependency, follow the following steps:
 tar -xvzf yaml-0.1.4.tar.gz  
 cd yaml-0.1.4  
 make install  

Now again install the ruby again, make clean is used to do fresh ruby install after removing the previous one:
 cd ruby-1.9.3-p194  
 make clean  
 make install  

After successful installation you will be getting following outputs:
 # ruby -v  
 ruby 1.9.3p194 (2012-04-20) [x86_64-linux]  
 # ./test.rb  
 Ruby working Fine:)  
 # gem -v  

Setup fully configurable EFK Elasticsearch Fluentd Kibana setup in Kubernetes

In the following setup, we will be creating a fully configurable Elasticsearch, Flunetd, Kibana setup better known as EKF setup. There is a...