Posts Tagged ‘cygwin’

ruby on cygwin “no such file to load — ubygems (LoadError)”

Friday, August 21st, 2009

If you’re getting that error, drop to bash and “env | grep -i ruby”. You’ll no doubt see “RUBYOPT=rubygems”.

Just do an “export RUBYOPT=” and it’ll clear that up.

Yes, this is largely for my own reference. It’s one of those solutions SO obvious that I’ll forget it in about 19 seconds.