From: Dan Zwell Date: 2007-09-03T07:37:14+09:00 Subject: Re: How to find and install rubygems on Cygwin Peter Vanderhaden wrote: > I'm a newbie as far as Ruby goes, and I want to install rubygems in > Cygwin. I have Ruby installed, but I don't know what I need to install > gems. This message shows that it can't find, or I don't have the files > needed: > $ gem install -r net-ssh > /cygdrive/c/ruby/bin/gem:9:in `require': no such file to load -- > rubygems (LoadE > rror) > from /cygdrive/c/ruby/bin/gem:9 > > Can anyone tell me what I need to download, and where I can it? > Thanks in advance.... I think you need to change the path where rubygems searches for libraries. You obviously have the "gem" executable, but gem is running "require 'rubygems'", which is failing. You should find rubygems.rb and note its folder. Say it's in /cygdrive/c/ruby/lib/, for example. You can start ruby with that information: ruby -I /cygdrive/c/ruby/lib/. It is up to you whether to type that manually each time you need to (i.e., ruby -I /cygdrive/c/ruby/lib/ /cygdrive/c/ruby/bin/gem install -r something), or write a wrapper script that calls the ruby executable with that argument. The second solution will work for any invocation of ruby, while you can obviously only utilize the first solution if ruby starts because you typed "ruby" on the command line (might as well use an alias, if that's the case). But it seems like this shouldn't be a problem... are there any better ways to install ruby on cygwin? (I haven't used cygwin in years...) Dan