cygwinを入れる前に、Windows環境にRubyを入れた時の話。 Windows環境にRubyを入れたら、どうやらWindowsの環境変数にこんなのがついてた。 RUBYOPT=-rubygems どうやら、Cygwinの環境変数ってWindowsの環境変数を継承するみたいで、 Cgywin上で「set」または「export」コマンドを使うと $ set ・ ・ RUBYOPT=-rubygems ・ ・ こんな感じになる。 そうなるとcygwinをインストールし、Cygein環境でRubyを動かすときにときに困る。 ちょうどこんなエラーがでる。 $ ruby test.rb ruby: no such file to load -- ubygems (LoadError) ずっと放って置いたんだけど、「'ubygems'って何だよ!そんなのロードするよう頼んでないよ!!!!」と思い