How to use Ruby 2.2 in OpenSuse 42.3?

0

Hi, I need to use the Ruby tk library, but the default edition of Opensuse is Ruby 2.1, I used yast to install the library but I installed tk for Ruby 2.2 next to the same edition.

Now I have two editions of Ruby (2.1 and 2.2), but the terminal only uses 2.1, and when I want to "run" code with tk it indicates error because it uses the 2.1, I tried to uninstall the 2.1 but it tells me that it is the base for many applications, libreoffice between them.

To "run" the scripts I use the command "ruby file.rb", try using ruby2_2, ruby2.2, ruby22 instead of "ruby" and none works, I checked the yast and yes I have the version 2.2 but I do not know how to use it How can I use Ruby 2.2?

    
asked by Robby 12.01.2018 в 17:32
source

0 answers