unable to run redis-trib.rb

9,579 views
Skip to first unread message

Naveen Chitturi

unread,
Dec 27, 2013, 2:57:21 PM12/27/13
to redi...@googlegroups.com
Hi

I am trying to run unstable version of redis in cluster mode and add them to cluster. 
But i was not able to run redis-trib.rb, i am new to redis & linx too. Please help me!!

tzrqbr@tzrqbr:~/redis/redis-unstable/src$ ./redis-trib.rb 
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- redis (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ./redis-trib.rb:25:in `<main>'

Thanks
Naveen

Jan-Erik Rediger

unread,
Jan 3, 2014, 8:33:20 AM1/3/14
to redi...@googlegroups.com
You need the redis gem[1] installed.

gem install redis

[1]: https://rubygems.org/gems/redis

Dipak Bhimani

unread,
Jan 3, 2014, 9:12:44 AM1/3/14
to redi...@googlegroups.com
I have recently gone through this exercise. You need to follow -

1. install the rubygem ( http://rubygems.org/pages/download)
2. ruby setup.rb  ( You will find setup.rb in rubygem installation path)
3. gem install rubygems-update -v 1.8.7 ( I have ruby version 1.8.7 so I have upgrade rubygems accordingly)
4. gem install redis

In case you face the SSL issue on step 3 and 4, you can disable the SSL with following CLI ( If you are doing on LAB setup, this is quick work around)
sudo gem sources -r https://rubygems.org/
sudo gem sources -a http://rubygems.org/  

Thanks,
Dipak

aka

unread,
Feb 10, 2014, 3:03:02 PM2/10/14
to redi...@googlegroups.com
I have the same problem and tried to follow the steps here but I still cant' find redis-trib.rb.  What else needs to happen in order for this file to get generated?  ( I installed ruby and rubygems but i don't know if/how redis is going to find them...)

Owiec

unread,
Feb 3, 2015, 7:44:16 AM2/3/15
to redi...@googlegroups.com
apt-get update
apt-get install ruby
gem install redis

Freire Zhu

unread,
Feb 10, 2015, 7:17:44 AM2/10/15
to redi...@googlegroups.com
try this:
$ yum install ruby ruby-devel rubygems rpm-build
gem install redis

在 2013年12月28日星期六 UTC+8上午3:57:21,Naveen Chitturi写道:
Reply all
Reply to author
Forward
0 new messages