How To Install Ruby On Fedora

0
277

If in CentOS, Debian, Ubuntu, Windows etc. Please see archive of my blog’s already well this time I will explain how if at this time different from Fedora in Fedora enough to do the command yum yum and yum you already can get a version of Ruby and other Gems with the latest version, just go ahead.

ruby

Open a shell session you guys (terminal)

# yum update

to update the repository if you guys are still not up to date. install ruby

# yum install ruby

later you will give to the old stable version of ruby, that version of the old stable now 2.0, it’s already a version of ruby that could have compatibility with any application. then update its gems

# gem -v

Please go to the website of rubygems in https://rubygems.org/if the version on the OS you guys with in different site then do update

# gem update –system

Next, update the existing list of gem

# gem update

Note: If an error like this:

Updating rubygems-update
Fetching: rubygems-update-2.4.5.gem (100%)
Successfully installed rubygems-update-2.4.5
Parsing documentation for rubygems-update-2.4.5
Installing ri documentation for rubygems-update-2.4.5
Installing darkfish documentation for rubygems-update-2.4.5
Done installing documentation for rubygems-update after 11 seconds
Installing RubyGems 2.4.5
RubyGems 2.4.5 installed
/usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- json/pure (LoadError)
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/share/gems/gems/json-1.7.7/lib/json.rb:60:in `rescue in <module:JSON>'
    from /usr/share/gems/gems/json-1.7.7/lib/json.rb:57:in `<module:JSON>'
    from /usr/share/gems/gems/json-1.7.7/lib/json.rb:54:in `<top (required)>'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/text.rb:16:in `<top (required)>'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/code_object.rb:28:in `<class:CodeObject>'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/code_object.rb:26:in `<top (required)>'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/generator/markup.rb:59:in `<top (required)>'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/generator/darkfish.rb:6:in `<top (required)>'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rdoc.rb:565:in `<top (required)>'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:73:in `load_rdoc'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:238:in `setup'
    from /usr/share/gems/gems/rdoc-4.0.1/lib/rdoc/rubygems_hook.rb:151:in `generate'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/commands/setup_command.rb:317:in `install_rdoc'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/commands/setup_command.rb:148:in `execute'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/command.rb:307:in `invoke_with_build_args'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/command_manager.rb:168:in `process_args'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/command_manager.rb:138:in `run'
    from /usr/local/share/gems/gems/rubygems-update-2.4.5/lib/rubygems/gem_runner.rb:54:in `run'
    from setup.rb:45:in `<main>'

Then do the install gems json_pure

# gem install json_pure

Then do an update of the previous step….

NO COMMENTS

LEAVE A REPLY