From: Peter Pk Date: 2008-08-19T01:34:01+09:00 Subject: Re: Help with Ruby under cygwin Robert Klemme wrote: >> I am not having this problem with anything else and so I am first asking >> for help here since I expect the cygwin people will turn me to this >> forum in the end in any case. I guess I will ask myself - this is long but complete :) If this is the wrong place to post this let me know. I *have* looked about fairly extensively for some form of coherant and coplete doc or howto but they are all vague and I have seen numerous postings that others have problems. If I get it figured out I will post my explicit cleaned up instructions somewhere so others with no ruby experience whatsoever can repeat the process easily. GOAL I want to get ruby and Rake up on cygwin. windows XP pro sp2 so I can evaluate rake as the "make and ant" killer and maybe use it as our primary cross platform build system. AND also to create an explicit set of non-vague repeatable sitructions for others to do so. I am following the "pickaxe book" bit on getting started. **** So far I downloaded and installed cygwin "fresh" as an administrator and included the ruby package "1.8.7-p72-1". (latest) the command ruby is found from the bash shell after installation. ~$ which ruby /usr/bin/ruby There is no RUBYOPT in my environment variables. ~$ echo X $RUBYOPT X X X from a cygwin bash shell. ~$ ruby (now in ruby shell) puts "xxx" (control D) xxx ~$ The interpreter seems to work. I downloaded a copy of "OneClickInstall to get that version as a reference and unpacked it so I could get the "samples", I did not run it's ruby and removed it from the path it installed so as not to conflict with cygwin. I also removed the RUBYOPT environment variable it installed, closed and re-opened the bash shell to purge it's cache, then: ~$ echo X $RUBYOPT X X X I found the "samples" directory from the one click install and found eval.rb. ~$ cd /cygdrive/c/ruby/samples/RubySrc-1.8.6-p111/sample$ ls eval.* /cygdrive/c/ruby/samples/RubySrc-1.8.6-p111/sample$ ls eval.* eval.rb from bash: /cygdrive/c/ruby/samples/RubySrc-1.8.6-p111/sample$ ruby ./eval.rb ruby: no such file to load -- ubygems (LoadError) Ok I saw several places one had to install "rubygems" in "ths customary way" ok so I guessed what the "customary way" is, I downloaded. rubygems-0.8.11.zip It unpacks to a directory ./rubygems-0.8.11/* Ok where do I put it? in /usr/lib/rubygems-0.8.11 ?? I tried this (this did not get rid of the load error) I renamed to to /usr/lib/ruby (this did not get rid of the load error) where do I go from here: (the objective here is to expand this into an explicit step by step set of instructions for getting ruby and rake set up under cygwin-XP a - so I can do it to evaluate rake as a "make and ant killer" b - so others can repeat this process without needing to ask questions to set up their machines :) Peter K. -- Posted via http://www.ruby-forum.com/.