Oct 14

Ruby on Cygwin - No such file to load -- ubygems

ruby rubygems cygwin


If you download Ruby in Cygwin, it requires rubygems without installing them before.

$ echo $RUBYOPT

But this option even prevents Rubygems to be installed.

/tmp/rubygems-1.3.0$ ruby setup
Ruby: No such file to load -- ubygems (LoadError)

Just unset that variable and then you should be good to go.

$ export RUBYOPT=
$ ruby setup
✱ ✱ ✱