You are not logged in.

#1 2018-01-06 14:56:25

lnx
Member
Registered: 2009-11-04
Posts: 101

[solved] ruby traceback error after package upgrade

I did an upgrade last night. When I logged in the following message was shown:

Traceback (most recent call last):
        1: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require': cannot load such file -- ubygems (LoadError)

According to pacman -Qs ruby and ruby-thor were installed. I tried to downgrade both packages. But when I restarted my PC, I could still log in as a regular user. But every command I tried, resulted in 'command not found' I had to upgrade ruby to be able to use startx again.
Assuming that 59 means line 59, I looked in /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb, but I can't make sense of it:

57     if Gem::Specification.unresolved_deps.empty? then
58      RUBYGEMS_ACTIVATION_MONITOR.exit
59      return gem_original_require(path)
60    end

So, can any body tell what this traceback message means?

Last edited by lnx (2018-01-06 16:36:38)

Offline

#2 2018-01-06 16:07:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,738

Re: [solved] ruby traceback error after package upgrade

What are you running in your startup files/bashrc/profile whatever that tries to start ruby? You probably have an AUR package that needs a rebuild.

Offline

#3 2018-01-06 16:36:19

lnx
Member
Registered: 2009-11-04
Posts: 101

Re: [solved] ruby traceback error after package upgrade

After putting the whole traceback message in duckduckgo, I found the answer on a website cloudypoint.com:

gem update --system

Offline

#4 2018-01-06 19:36:18

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: [solved] ruby traceback error after package upgrade

This error message says that long-time deprecated `-rubygems` flag is removed from `ruby` tool. If you use `ruby -rubygems` please remove the flag. Here is an example https://git.archlinux.org/svntogit/pack … c1bd432e90


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

#5 2018-01-08 08:29:11

Fuxy
Member
Registered: 2015-10-17
Posts: 6

Re: [solved] ruby traceback error after package upgrade

Cool. Thx Inx that fixed it for me as well.

No idea what ruby program it was but it's all good as long as its fixed.

PS. The only significant thing in my .bashrc would be

# Bash path update
export PATH="${PATH}:$(ruby -rubygems -e "puts Gem.user_dir")/bin:/home/user/.composer/vendor/bin"

# Basic system stats
archey3

The path was like that to begin with so it didn't need to be updated

Last edited by Fuxy (2018-01-08 08:50:07)

Offline

#6 2018-01-09 00:23:32

anatolik
Developer
Registered: 2012-09-27
Posts: 458

Re: [solved] ruby traceback error after package upgrade

Fuxy wrote:

Cool. Thx Inx that fixed it for me as well.

No idea what ruby program it was but it's all good as long as its fixed.

PS. The only significant thing in my .bashrc would be

# Bash path update
export PATH="${PATH}:$(ruby -rubygems -e "puts Gem.user_dir")/bin:/home/user/.composer/vendor/bin"

# Basic system stats
archey3

The path was like that to begin with so it didn't need to be updated

Please remove `-rubygems` from you .bashrc. This flag is invalid starting with ruby 2.5.


Read it before posting http://www.catb.org/esr/faqs/smart-questions.html
Ruby gems repository done right https://bbs.archlinux.org/viewtopic.php?id=182729
Fast initramfs generator with security in mind https://wiki.archlinux.org/index.php/Booster

Offline

Board footer

Powered by FluxBB