If you need background as to why i had to do this, read about this in part one.
That means i had to put myself thru the ordeal of installing ( yet again on an old machine that’s going out the door ), yes, you guessed it, Ruby and it’s gems. Why ? Cos i need the GEM install tool to give me the CF command line tool that my apps need to talk to anynines.
Does Windows XP like Ruby and it’s gems ? Well if provoked, yes it does rather.
To install ruby on your windows XP, go here: http://rubyinstaller.org/downloads/
The Ruby Installer
For windows XP, i chose to click on and download version Ruby 1.9.3-p545, so i downloaded (see screenshot red/yellow box top left) and unzipped that then double clicked to install ruby.
After install, opened command terminal session to confirm ruby was running.
What’s This Batman ?
Did you know that off-the-bat, ruby does NOT include the bits needed to run properly on windowsXp systems ? Holy bats guano, Batman! Me neither! So how do we coax it to do so ?
We need to also install the ruby build tool called the devkit. Look at that screenshot above. See lower right in red/yellow BUILD YOUR OWN title and click that for instructions on how to download a copy of the devkit into your system. It explains a lot but where do you download from ? Well look at screen shot above middle left, under the title
For use with Ruby 1.8.7 and 1.9.3:
since we’re using ruby 1.9.3 for windows XP 32 bit kit, click that link (or mine here) to download the devkit into your browser’s download folder.
Next we need to copy this downloaded tool into a safe place on your C:\ drive. Open a command console session. Click START button lower left, the select RUN then type CMD to start a command console session. What i did was this :
cd C:\ mkdir devkit cd devkit/ $ ruby dk.rb init $ ruby dk.rb install $ gem install bson_ext --platform=ruby
after making the devkit directory, copied the devkit tool from my browser’s download directory into c:\devkit, then ran ruby dk.rb init, etc. The ‘gem install…’ command just confirms everything is tickety-boo (that’s a technical term)…
As with all things technical these days, i had to rely on info from other sources. In this case, a wonderful bit of magic came from Satish Talim who, by the looks of his photo, must have pulled out all his hair to figure this one out !!! Thanks 2 u Satish !!
Clix pix to read this nice overview from Satish Talim :
Jeepers Batman !
Ok, got that ? If i ever had the urge to learn ruby programming, i’d called on Satish, but please pass me the smelling salts first cos i feel faint 😛 Naw, couldn’t stand another whimpy scripty poser thing, just give me a man’s programming language ! Yes, COBOL !! Bang fist on table 😀
Does It All Hang Together ?
To confirm GEM is installed:
C:\devkit gem RubyGems is a sophisticated package manager for Ruby. This is a basic help message containing pointers to more information. Usage: gem -h/--help gem -v/--version gem command [arguments...] [options...] Examples: gem install rake gem list --local gem build package.gemspec gem help install Further help: gem help commands list all 'gem' commands gem help examples show some examples of usage gem help platforms show information about platforms gem help <COMMAND> show help on COMMAND (e.g. 'gem help install') gem server present a web page at http://localhost:8808/ with info about installed gems Further information: http://rubygems.rubyforge.org
and now to the pasty resistance, we can (at last) install our beloved CF tool like this:
$ gem install cf --platform=ruby
and to check which version of the CF tool we have, get the version by using the -v option with the CF tool.
$ cf -v cf 5.4.7
Nice !! Now back to my beloved anynines !