You are not logged in.
I'm trying to install some cool ruby gems, and at first it worked fine. Just installed ruby by with
sudo pacman -S rubyand 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
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
Wow! I've been looking a week for how to solve this. This feels like christmas ![]()
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title...
Offline