Gem Install Reel On CentOS 7

Home » CentOS » Gem Install Reel On CentOS 7
CentOS 4 Comments

Hi – I installed ruby for something… The instructions said to also do the comand:

gem install reel ERROR: Error installing reel:
timers requires Ruby version >= 2.2.1.
[root@devgeis ~]# ruby –version ruby 2.0.0p648 (2015-12-16) [x86_64-linux]

Not sure what to do. Wait for CentOS 8? Thoughts? Thanks,

Jerry

4 thoughts on - Gem Install Reel On CentOS 7

  • Install CentOS SCLo RH repository:
    yum install CentOS-release-scl-rh

    Install rh-ruby22-ruby rpm package:
    yum install rh-ruby22-ruby

    currently 2.2.9, I think.

  • Thanks John for the info… I did that and now I’m missing a file. I tried to ask yum what package I need – but It did not know.

    Building native extensions. This could take a while… ERROR: Failed to build gem native extension.

    /opt/rh/rh-ruby22/root/usr/bin/ruby -r
    ./siteconf20190805-94063-1gebs0u.rb extconf.rb mkmf.rb can’t find header files for ruby at
    /opt/rh/rh-ruby22/root/usr/share/include/ruby.h

    extconf failed, exit code 1

    Gem files will remain installed in
    /opt/rh/rh-ruby22/root/usr/local/share/gems/gems/nio4r-1.1.1 for inspection. Results logged to
    /opt/rh/rh-ruby22/root/usr/local/lib64/gems/ruby/nio4r-1.1.1/gem_make.out

    yum provides /opt/rh/rh-ruby22/root/usr/share/include/ruby.h Loaded plugins: fastestmirror, langpacks, nvidia Loading mirror speeds from cached hostfile
    * base: mirror.tzulo.com
    * CentOS-sclo-rh: mirror.team-cymru.com
    * CentOS-sclo-sclo: mirror.fileplanet.com
    * elrepo: ord.mirror.rackspace.com
    * epel: ord.mirror.rackspace.com
    * extras: mirror.nodesdirect.com
    * updates: mirrors.liquidweb.com CentOS-sclo-rh/x86_64/filelists_db

    | 12 MB 00:00:01
    elrepo/filelists_db

    | 34 kB 00:00:00
    epel/x86_64/filelists_db

    | 12 MB 00:00:00
    google-chrome/filelists

    | 1.7 kB 00:00:00
    updates/7/x86_64/filelists_db

    | 5.2 MB 00:00:00
    No matches found

    Thanks, What is next ?

    Jerry

  • most typically .h files are included in a -dev package, but I dunno about this one. googling rh-ruby22, I find, oops, its EOL, and replaced with rh-ruby23

    https://www.softwarecollections.org/en/scls/rhscl/rh-ruby23/

    btw, with the SCL stuff, note the “scl enable rh-ruby23 bash” command, that spawns you a shell with that packages directories in the path… that might make this work. see that page for more details, including a gem run.

  • Thanks John,

    I did the yum remove on rh-ruby22*
    did a yum install rh-ruby23-ruby then I found the rh-ruby23-ruby-devel and now it works.

    Jerry