Forum: Ruby devkit not able to find ruby installation

Bc888aa658ab0e0d2a4d305ad7f69123?d=identicon&s=25 Stephen Boesch (javadba)
on 2011-04-09 03:13
As mentioned in title, devkit is not finding ruby installation. Also
after adding to config.yml get an error of 'invalid configuration. help
appreciated.

Here is env:

C:\zdisks\devkit>gem environment
RubyGems Environment:
  - RUBYGEMS VERSION: 1.3.7
  - RUBY VERSION: 1.9.2 (2010-12-25 patchlevel 136) [i386-mingw32]
  - INSTALLATION DIRECTORY:
C:/apps/pik/rubies/ruby-1.9.2-p136/lib/ruby/gems/1.9.1
  - RUBY EXECUTABLE: C:/apps/pik/rubies/ruby-1.9.2-p136/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/apps/pik/rubies/ruby-1.9.2-p136/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86-mingw32
  - GEM PATHS:
     - C:/apps/pik/rubies/ruby-1.9.2-p136/lib/ruby/gems/1.9.1
     - C:/Documents and Settings/sboesch/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/


Here is command to create the config.yml:

C:\zdisks\devkit>ruby dk.rb init

But .. no ruby's were found .. ;(

# 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
#

Then when I MANUALLY add the ruby as follow:

# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
C:/apps/pik/rubies/ruby-1.9.2-p136

I get following:

C:\zdisks\devkit>ruby dk.rb review

Invalid configuration. Please fix 'config.yml.'


How painful.
76c55292df5e9df9042eaf89ac35954b?d=identicon&s=25 Nick Klauer (klauern)
on 2011-04-09 03:52
(Received via mailing list)
Not sure if it will solve your problem, but could you try putting a '-
'before the path, as shown in those examples?  Here's my
config.yml for instance:

#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- C:/Ruby192
- C:/jruby-dev
- C:/jruby-1.6.0


-Nick Klauer
E7cff3cfd41c495e1012227d7dc24202?d=identicon&s=25 Luis Lavena (luislavena)
on 2011-04-09 17:31
(Received via mailing list)
On Apr 8, 10:13pm, Stephen Boesch <java...@gmail.com> wrote:
>
> # - C:/ruby19trunk
>
> I get following:
>
> C:\zdisks\devkit>ruby dk.rb review
>
> Invalid configuration. Please fix 'config.yml.'
>
> How painful.
>


As indicated in the example, you need to provide a list of
directiories, even if there is one:

- C:/Path/to/ruby
- C:/Path/To/another/ruby

Simply adding the dash should solve your problem.
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.