fredag 16 december 2011

Installing OpenShift Express client tools in Windows

1) Install Cygwin. See my blog how to install Cygwin in Windows
2) Download and extract rubygems from http://rubyforge.org/frs/download.php/75574/rubygems-1.8.12.zip
2) Write the following command in your Cygwin terminal
$ruby <path_to_extracted_rubygems>/setup.rb 
In my example I am writing
$ruby "E:\tools\rubygems\setup.rb" install

There E:\tools\rubygems\setup.rb is my local path to extracted rubygem. Please note that the path must be quoted if you want to use DOS-style path instead of Unix-style, something like the folliwng:
$ruby /cygdrive/e/tools/rubygems/setup.rb install
Where  /cygdrive is mounted to Windows C:. You can see the list of mounted as follows:
$mount
C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)
G: on /cygdrive/g type ntfs (binary,posix=0,user,noumount,auto)
I: on /cygdrive/i type ntfs (binary,posix=0,user,noumount,auto)
M: on /cygdrive/m type mvfs (binary,posix=0,user,noumount,auto)
U: on /cygdrive/u type ntfs (binary,posix=0,user,noumount,auto)

3) Install the gem:
$gem install rhc 

Inga kommentarer:

Skicka en kommentar