Skip to content

Instantly share code, notes, and snippets.

@Azolo
Created February 26, 2014 05:26
Show Gist options
  • Save Azolo/9223999 to your computer and use it in GitHub Desktop.
Save Azolo/9223999 to your computer and use it in GitHub Desktop.
Output of a Powershell Session installing the json gem with Ruby 1.9.3p545 on Azure
Windows PowerShell
Copyright (C) 2013 Microsoft Corporation. All rights reserved.
PS C:\Users\justinb> cd C:\Devkit
PS C:\Devkit> ruby .\dk.rb init
[INFO] found RubyInstaller v1.9.3 at C:/Ruby193
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
PS C:\Devkit> cat .\config.yml
# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- C:/Ruby193
PS C:\Devkit> ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby193'
[INFO] Installing 'C:/Ruby193/lib/ruby/site_ruby/devkit.rb'
PS C:\Devkit> gem ins json
Fetching: json-1.8.1.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed json-1.8.1
1 gem installed
Installing ri documentation for json-1.8.1...
Installing RDoc documentation for json-1.8.1...
PS C:\Devkit> (Get-WmiObject -class Win32_OperatingSystem).Caption
Microsoft Windows Server 2012 R2 Datacenter
PS C:\Devkit> Write-Host $env:Path
C:\Ruby193\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\
PS C:\Devkit> ruby -v
ruby 1.9.3p545 (2014-02-24) [i386-mingw32]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment