You are not logged in.

#1 2018-05-26 05:30:50

0xduk3n
Member
From: Brasil
Registered: 2018-05-26
Posts: 4

[SOLVED]`ubygems.rb' deprecated

Hello all, every time I open the terminal, the following message is displayed: `ubygems.rb' is deprecated, and will be removed on or after 2018-12-01. Remove `-rubygems' from your command-line, or use `-r rubygems' instead
i try some solutions, but none of my attempts solved the problem.

thx

Sorry my inglish is bad...LOL

Last edited by 0xduk3n (2018-05-27 14:55:42)

Offline

#2 2018-05-26 05:41:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED]`ubygems.rb' deprecated

Paste your shell initialisation files (presumably .bashrc and .bash_profile).


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-05-26 12:28:14

0xduk3n
Member
From: Brasil
Registered: 2018-05-26
Posts: 4

Re: [SOLVED]`ubygems.rb' deprecated

Hello
I think it solves the problem. I just run sudo vim /usr/lib/ruby/2.5.0/ubygems.rb and i commented the line with the warn....but, i dunno if it's the best way. LOL


thx

Offline

#4 2018-05-26 16:22:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [SOLVED]`ubygems.rb' deprecated

No, not only is that not the best way, that is not a good way at all.  If you want help, past your shellrc files as requested.

EDIT: where does that file come from?  It is no longer packaged with rubygems?  Is your system up to date?  Are you not running arch linux? nevermind this part ... I swear it wasn't there a second ago - ah, I searched for the full path instead of using -Fo.

Last edited by Trilby (2018-05-26 16:34:08)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2018-05-26 16:30:35

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: [SOLVED]`ubygems.rb' deprecated

This is still in the package and should stay there until December 2018 as written in the message.

$ CUTF pacman -Qo /usr/lib/ruby/2.5.0/ubygems.rb
/usr/lib/ruby/2.5.0/ubygems.rb is owned by rubygems 2.7.7-1

Last edited by progandy (2018-05-26 16:32:09)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#6 2018-05-26 19:51:30

0xduk3n
Member
From: Brasil
Registered: 2018-05-26
Posts: 4

Re: [SOLVED]`ubygems.rb' deprecated

Trilby wrote:

No, not only is that not the best way, that is not a good way at all.  If you want help, past your shellrc files as requested.

EDIT: where does that file come from?  It is no longer packaged with rubygems?  Is your system up to date?  Are you not running arch linux? nevermind this part ... I swear it wasn't there a second ago - ah, I searched for the full path instead of using -Fo.


Hello, my bashrc
https://ghostbin.com/paste/c8fpk


thx

Offline

#7 2018-05-26 19:56:20

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: [SOLVED]`ubygems.rb' deprecated

GEM_DIR=$(ruby -rubygems -e 'puts Gem.user_dir')/bin

This is what is causing the message.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2018-05-27 14:54:56

0xduk3n
Member
From: Brasil
Registered: 2018-05-26
Posts: 4

Re: [SOLVED]`ubygems.rb' deprecated

WorMzy wrote:
GEM_DIR=$(ruby -rubygems -e 'puts Gem.user_dir')/bin

This is what is causing the message.

yep

Offline

#9 2018-06-26 19:14:38

mccurly
Member
Registered: 2015-06-05
Posts: 32

Re: [SOLVED]`ubygems.rb' deprecated

Hi,

Just do what the message is telling you to.

Since the problem may be residing inside one of your rc files for your shell, just look for that invocation in there and change it accordingly to the warning instructions, which translates (simply put) into:

where it was

-rubygems

just write 

-r rubygems

.

Offline

Board footer

Powered by FluxBB