Oct 14

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

ruby rubygems cygwin

http://bparanj.blogspot.com/2007/04/ruby-no-such-file-to-load-ubygems.html

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

$ echo $RUBYOPT
-rubygems

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
...
✱ ✱ ✱