I have been playing with this for a bit now. It appears that recent
upgrades to RUby and Gem have broken things.
I was having all kinds of issues with native code compiling (Ubuntu
14.10), and nothing the Mac guys were trying worked, so I started over
by installing ruby-2.1.5 from source. Okay, so far so good; had to
re-install gems so this time I went conservative and installed rails -v
4.0.12. Great, everything worked and all the native compile failures
disappeared, except for one: ruby-postgres. Major improvement, so I felt
good.
Encouraged, I tried gem update --system, then gem update. Whoops, I
said, as I saw that gem update was happily updating Rails. Sure enough
all the failures are now back again.
These are not rails-specific gem failures, which is why I am posting
here. Nokogiri, for example, now fails. I’ve been joyfully using Ruby
since about 2004, so I’m not exactly a newbie although my work has had
me using that horrid language that begins with A ‘J’ for the last two
years.