# Inochi newbie question - error running WordCount example on windows

**URL:** <https://www.ruby-forum.com/t/inochi-newbie-question-error-running-wordcount-example-on-windows/162199>\
**Category:** Ruby\
**Created:** [March 6, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/inochi-newbie-question-error-running-wordcount-example-on-windows/162199 "2009-03-06T18:01:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pabloq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Post date:** [March 6, 2009, 6:01pm UTC](https://www.ruby-forum.com/t/inochi-newbie-question-error-running-wordcount-example-on-windows/162199/1 "2009-03-06T18:01:20Z")

</div>

Hi folks,

I tried to run the example of WordCout but I got the following problem:

E:\projects\word\_count\>rake test --trace  
(in E:/projects/word\_count)  
\*\* Invoke test (first\_time)  
\*\* Execute test  
c:/ruby/bin/ruby -w -I. -Ilib -r word\_count -e  
# dump language phrases _after_ exercising all code (and  
# thereby populating the phrases cache) in the project  
at\_exit do  
if ENV[‘dump\_lang\_phrases’] == ‘1’  
file = “lang/phrases.yaml”  
list = WordCount::PHRASES.phrases  
data = list.map {|s| s + ‘:’ }.join("\n")

```
        File.write file, data

        puts "Extracted #{list.length} language phrases into

```

#{file.inspect}  
"  
end  
end

```
    # set title of test suite
    $0 = File.basename(Dir.pwd)

    require 'minitest/unit'
    require 'minitest/spec'
    require 'minitest/mock'
    MiniTest::Unit.autorun

    Dir['test/**/*.rb'].sort.each do |test|
      unit = test.sub('test/', 'lib/')

      if File.exist? unit
        # strip file extension because require()
        # does not normalize its input and it
        # will think that the two paths (with &
        # without file extension) are different
        unit_path = unit.sub(/\.rb$/, '').sub('lib/', '')
        test_path = test.sub(/\.rb$/, '')

        require unit_path
        require test_path
      else
        warn "Skipped test #{test.inspect} because it lacks a

```

corresponding  
#{unit.inspect} unit."  
end  
end

c:/ruby/lib/ruby/1.8/pathname.rb:709:in `relative_path_from': different prefix: "c:/" and "E:/projects/word_count" (ArgumentError) from c:/ruby/lib/ruby/gems/1.8/gems/minitest-1.3.1/lib/minitest/unit.rb: 17 from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`ge  
m\_original\_require’  
from  
c:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`re quire' from -e:19 rake aborted! Command failed with status (1): [c:/ruby/bin/ruby -w -I. -Ilib -r word_coun...] c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:969:in`sh’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:982:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:982:in`sh’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1070:in `sh' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1003:in`ruby’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:1070:in `ruby' c:/ruby/lib/ruby/gems/1.8/gems/inochi-0.3.0/lib/inochi/rake.rb:191:in`rake’

c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in `call' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:617:in`execute’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in `each' c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:612:in`execute’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:578:in  
`invoke_with_call_c hain' c:/ruby/lib/ruby/1.8/monitor.rb:242:in`synchronize’  
c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.4/lib/rake.rb:571:in  
`invoke\_with\_call\_c  
hain’

It seems that is a rake problem with ‘sh’… Am I right? does anyone  
have  
gotten the same error? (and has solved it?)

thanks

---

<div class="post-metadata">

**Author:** ![pabloq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Post date:** [May 8, 2009, 12:11am UTC](https://www.ruby-forum.com/t/inochi-newbie-question-error-running-wordcount-example-on-windows/162199/2 "2009-05-08T00:11:33Z")

</div>

Hi,

Pablo Q. wrote:

> E:\projects\word\_count\>rake test --trace  
> (in E:/projects/word\_count)  
> […]  
> c:/ruby/lib/ruby/1.8/pathname.rb:709:in `relative\_path\_from’: different  
> prefix:

This problem has been solved in a newer release:

U:\>inochi -v  
project: Inochi  
version: 1.0.0  
release: 2009-05-03  
website: [http://snk.tuxfamily.org/lib/inochi](http://snk.tuxfamily.org/lib/inochi)  
install: c:/Program Files/Ruby/lib/ruby/gems/1.8/gems/inochi-1.0.0

U:\>inochi WordCount  
create word\_count/CREDITS  
create word\_count/LICENSE  
create word\_count/rakefile  
create word\_count/bin/word\_count  
create word\_count/lib/word\_count.rb  
create word\_count/test/word\_count.rb  
create word\_count/doc/index.erb  
create word\_count/doc/intro.erb  
create word\_count/doc/setup.erb  
create word\_count/doc/theory.erb  
create word\_count/doc/usage.erb  
create word\_count/doc/history.erb

U:\>cd word\_count

U:\word\_count\>rake test  
(in U:/word\_count)  
#\<Gem::LoadError: Could not find RubyGem spicycode-rcov (\>= 0)

> 

#\<Gem::LoadError: Could not find RubyGem voloko-sdoc (\>= 0.2.10)

> 

ruby -w c:/temp/4732.4732.0  
Inochi establishment tests passed!
