Redis cluster installation failure on RHEL

336 views
Skip to first unread message

Santos Das

unread,
Jun 8, 2017, 3:28:09 PM6/8/17
to Redis DB
Hi,

I am setting up the redis-cluster on RHEL and it fails;


[root@redhat-# uname -a
Linux redhat- 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@redhat-0 /]#


./src/redis-trib.rb create --replicas 1 x.x.x.x:7000 x.x.x.x:7001 x.x.x.x:7002 x.x.x.x:7003 x.x.x.x:7004 x.x.x.x:7005

/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- redis (LoadError)

        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'

        from ./src/redis-trib.rb:25:in `<main>'

 



[root@redhat-10-37-14-30 /]# ruby -v

ruby 2.0.0p648 (2015-12-16) [x86_64-linux]

[root@redhat-10-37-14-30 /]#




 sudo yum install ruby ruby-devel rubygems rpm-build


Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager


This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.


Package ruby-2.0.0.648-29.el7.x86_64 already installed and latest version


No package ruby-devel available.


Package rubygems-2.0.14.1-29.el7.noarch already installed and latest version


Package rpm-build-4.11.3-21.el7.x86_64 already installed and latest version

Nothing to do

 

Jan-Erik Rediger

unread,
Jun 8, 2017, 3:37:28 PM6/8/17
to redi...@googlegroups.com
You need to install the redis rubygem

gem install redis

On Thu, Jun 08, 2017 at 12:28:08PM -0700, Santos Das wrote:
> Hi,
>
> I am setting up the redis-cluster on RHEL and it fails;
>
>
> [root@redhat-# uname -a
> Linux redhat- 3.10.0-327.el7.x86_64 #1 SMP Thu Oct 29 17:29:29 EDT 2015
> x86_64 x86_64 x86_64 GNU/Linux
> [root@redhat-0 /]#
>
>
> ./src/redis-trib.rb create --replicas 1 x.x.x.x:7000 x.x.x.x:7001
> x.x.x.x:7002 x.x.x.x:7003 x.x.x.x:7004 x.x.x.x:7005
>
> /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require':
> cannot load such file -- redis (LoadError)
>
> from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in
> `require'
>
> from ./src/redis-trib.rb:25:in `<main>'
>
>
>
>
>
> [root@redhat-10-37-14-30 /]# ruby -v
>
> ruby 2.0.0p648 (2015-12-16) [x86_64-linux]
>
> [root@redhat-10-37-14-30 /]#
>
>
>
> sudo yum install ruby ruby-devel rubygems rpm-build
>
>
> Loaded plugins: langpacks, product-id, search-disabled-repos,
> subscription-manager
>
>
> This system is not registered to Red Hat Subscription Management. You can
> use subscription-manager to register.
>
>
> Package ruby-2.0.0.648-29.el7.x86_64 already installed and latest version
>
>
> No package *ruby-devel* available.
>
>
> Package rubygems-2.0.14.1-29.el7.noarch already installed and latest version
>
>
> Package rpm-build-4.11.3-21.el7.x86_64 already installed and latest version
>
> Nothing to do
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Santos Das

unread,
Jun 8, 2017, 4:10:29 PM6/8/17
to Redis DB
Have done that already:

sudo yum install redis
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Package redis-3.2.3-1.el7.x86_64 already installed and latest version
Nothing to do

Jan-Erik Rediger

unread,
Jun 8, 2017, 4:52:09 PM6/8/17
to redi...@googlegroups.com
No, you installed the Redis server through your system's package
manager.

redis-trib, the administration tool for Redis Cluster, is written in
Ruby and requires a Redis client library written in Ruby.
Rubygem is the Ruby packet manager used to install ruby libraries.

Therefore, either use rubygems to install the redis rubygem or check if
yum has a ruby-redis (or similar) package
> > No package *ruby-devel* available.
> >
> >
> > Package rubygems-2.0.14.1-29.el7.noarch already installed and latest
> > version
> >
> >
> > Package rpm-build-4.11.3-21.el7.x86_64 already installed and latest version
> >
> > Nothing to do
> >
> >
> >
>

Santos Das

unread,
Jun 9, 2017, 12:10:06 AM6/9/17
to Redis DB
Hi,

I am looking at redis-stable/src/redis-trib.rb

it seems, it fails in "require redis"

require 'rubygems'
require 'redis'



/usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- redis (LoadError)
        from /usr/local/share/ruby/site_ruby/rubygems/core_ext/kernel_require.rb:55:in `require'
        from src/redis-trib.rb:25:in `<main>'





sudo yum install rubygems
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Package rubygems-2.0.14.1-29.el7.noarch already installed and latest version
Nothing to do




On Friday, June 9, 2017 at 12:58:09 AM UTC+5:30, Santos Das wrote:

hva...@gmail.com

unread,
Jun 9, 2017, 7:12:40 AM6/9/17
to Redis DB
You ran the command:

sudo yum install rubygems

but janerik advised you to run the command:

gem install redis

Please don't be confused by the name "redis" in the command "gem install redis".  The command does not install the Redis server software.  It installs a Redis client designed for the Ruby language.  The client is named "redis" rather than "redis-client".

  -Greg

Santos Das

unread,
Jun 12, 2017, 1:24:13 AM6/12/17
to Redis DB
Thank you Greg. I was succesfully setup the cluster on RHEL now.


On Friday, June 9, 2017 at 12:58:09 AM UTC+5:30, Santos Das wrote:
Reply all
Reply to author
Forward
0 new messages