Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid gemspec #61

Closed
sramsay opened this issue Sep 28, 2011 · 10 comments
Closed

Invalid gemspec #61

sramsay opened this issue Sep 28, 2011 · 10 comments

Comments

@sramsay
Copy link

sramsay commented Sep 28, 2011

Love, love, love earthquake. But can't run it anymore, because I get:

Invalid gemspec in [/usr/lib64/ruby/gems/1.9.1/specifications/earthquake-0.8.1.gemspec]: Illformed requirement ["#Syck::DefaultKey:0x0000000251a278 0.4.3"]

when I try to install it.

In fact, that error appears even when earthquake is not actually installed (when running anything having to do with gems, irb etc.)

Any thoughts on what might be causing this? Is there a way to clear out the gemspec and start over?

@jugyo
Copy link
Owner

jugyo commented Sep 28, 2011

It seems the problem of old version rubygems.
Please try gem update --system and reinstall earthquake.

Best regards.

@sramsay
Copy link
Author

sramsay commented Sep 28, 2011

Thanks for the quick response!

Unfortunately, "gem update --system" yields:

"Latest version currently installed. Aborting" (and repeats the invalid gemspec errors).

@jugyo
Copy link
Owner

jugyo commented Sep 28, 2011

Hmm...
I will check it.
But right now, my sleeping time is coming :)

@sramsay
Copy link
Author

sramsay commented Oct 2, 2011

Anyone have any thoughts on this? Just can't get rid of it . . .

@iomz
Copy link

iomz commented Oct 8, 2011

Manually edit /usr/lib64/ruby/gems/1.9.1/specifications/earthquake-0.8.1.gemspec

  1. Find the lines content #Syck::DefaultKey:0x0000000251a278 0.4.3
  2. Replace #Syck::DefaultKey:0x0000000251a278 0.4.3 with ~> 0.4.3

I don't think this is a smart way, but it worked for me.

@sramsay
Copy link
Author

sramsay commented Oct 8, 2011

Doesn't work for me. In fact, no amount of screwing around with that file does anything (including erasing it).

Can someone at least explain the nature of the problem? I'm not familiar enough with rubygems to really be able to figure out why it's failing. I haven't been able to use earthquake in months.

@irohiroki
Copy link

possible workaround:
export RUBYOPT=-rpsych
(note that you need ruby installed with libyaml.)

@sramsay
Copy link
Author

sramsay commented Oct 11, 2011

Finally! That seems to have fixed it. Thank you so much, irohiroki (and everyone who replied).

But, um, what did I just do? ;)

@irohiroki
Copy link

well, ruby has two yaml engines, syck (legacy) and psych (brand new).
the default is syck which I don't know why (maybe the problem of dependency?) and to use psych, you need to require it.
that's it :)

@jugyo
Copy link
Owner

jugyo commented Oct 11, 2011

Great!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants