You are not logged in.

#1 2013-09-18 13:29:28

kottmaskinen
Member
Registered: 2013-09-18
Posts: 3

ruby gem > Psych::SyntaxError (no file specified) (SOLVED)

I'm trying to install some cool ruby gems, and at first it worked fine. Just installed ruby by with

sudo pacman -S ruby

and then I managed to install some gems with

gem install _random_gem_

When I tried to install another gem, shopify_theme, I started getting the famous "failed building native gem extension". I tried to fix it, I don't know if I did, but still I rebooted after a while and whop, it looked like it was installing as it should. I then tried to add the ruby gem to the PATH, and after that, everytime I type 'gem' I get:

[user@arch]$ /usr/bin/gem

/usr/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): found character that cannot start any token while scanning for the next token at line 3 column 1 (Psych::SyntaxError)
    from /usr/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
    from /usr/lib/ruby/2.0.0/psych.rb:153:in `parse'
    from /usr/lib/ruby/2.0.0/psych.rb:129:in `load'
    from /usr/lib/ruby/2.0.0/rubygems/config_file.rb:318:in `load_file'
    from /usr/lib/ruby/2.0.0/rubygems/config_file.rb:191:in `initialize'
    from /usr/lib/ruby/2.0.0/rubygems/gem_runner.rb:66:in `new',
    from /usr/lib/ruby/2.0.0/rubygems/gem_runner.rb:66:in `do_configuration'
    from /usr/lib/ruby/2.0.0/rubygems/gem_runner.rb:46:in `run'
    from /usr/bin/gem:21:in `<main>'

It doesn't even have to be a gem command, like gem list, or gem install. Whatever I type gives me the same error. I've tried uninstalling and reinstalling ruby, compiling it from source as well, but no luck. Since neither the bad character or the file in which the error occur isn't specified (maybe it is? I can't see it though), I'm having a hard time tracking it down and doing something about it.

Any bright minds with the same experience out there? I'd love any help I can get :)

Thanks in advance!

Last edited by kottmaskinen (2013-09-26 10:29:01)

Offline

#2 2013-09-26 10:27:48

kottmaskinen
Member
Registered: 2013-09-18
Posts: 3

Re: ruby gem > Psych::SyntaxError (no file specified) (SOLVED)

AAAAAaaaahhhyeeeahh!!

My ~/.gemrc had the wrong gem path in it!

It had a dash and a new line in it, which wasn't cool, so I removed it and now it works big_smile Wow! I've been looking a week for how to solve this. This feels like christmas big_smile

Offline

#3 2013-09-26 10:29:53

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

Re: ruby gem > Psych::SyntaxError (no file specified) (SOLVED)

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB