Did you try installing rake gem?
-r
Ruby 1.9.2 includes Rake, but the problem is that the gem installation
process is not seeing it.
Spork uses mkrf (Make Rakefile) which hasn't been the best support
ever in RubyGems itself.
Can you include the following?
Output of "gem env"
Output of "gem install spork --debug -V"
We prefer the output of these things into a Gist/Pastie, so the lines
are not mangled by email clients
With that info I would be able to replicate the environment and try
again, as here, it works:
C:\Users\Luis>ruby -v
ruby 1.9.2dev (2010-07-02) [i386-mingw32]
C:\Users\Luis>gem install spork
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed spork-0.8.4
1 gem installed
But simply because I've installed Rake over bundled Ruby installation:
gem list -d rake
rake (0.8.7)
Author: Jim Weirich
Rubyforge: http://rubyforge.org/projects/rake
Homepage: http://rake.rubyforge.org
Installed at: C:/Users/Luis/.gem/ruby/x86-mingw32/1.9.1
Ruby based make-like utility.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
Well, seems is not the problem of having rake or not, but something in
your system that is not working properly (I've shown the success of
that gem installation).
Excluding for a second that Spork does something not good in the mkrf_conf:
http://github.com/timcharper/spork/blob/master/ext/mkrf_conf.rb
Did you install Ruby with administrative rights? (or as normal user?)
Just to discard that C:/ruby-1.9.2-rc1-i386-mingw32 is been blocked by
NTFS permissions.
Can you CD into
C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/gems/1.9.1/gems/spork-0.8.4/ext
and execute:
ruby mkrf_conf.rb
And then:
rake --trace RUBYARCHDIR=C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/gems/1.9.1/gems/spork-0.8.4/lib
RUBYLIBDIR=C:/ruby-1.9.2-rc1-i386-mingw32/lib/ruby/gems/1.9.1/gems/spork-0.8.4/lib
Please create a Gist of the output of both commands.
Also, include:
SET PATH
And info if you have or not the DevKit installed, as Spork depends on
win32-process which do not provide a gem for mingw32.
Since I previously had win32-process installed, that could be the
culprit of the issue you're having.
Thank you.
Reverting to 1.9.2 preview3 and it seems to work ok there.
-r
> Reverting to 1.9.2 preview3 and it seems to work ok there.I take that back. Appears to be same problem with 1.9.2 preview3 as
well.
Only fix I've found thus far is to 1) never re-install the rake gem
or
2) delete any rake.gemspec file that comes along with your ruby distro
[1]
-r
[1] http://www.ruby-forum.com/topic/214757#932314
Thank you Bosko, putting this into the ticket in Redmine (you need an
account, but I got one).
Regards,
Would someone check using our 1.8.7p299 plus our new DevKit whether you see the following which may or may not be related? I have pik 0.2.8 installed and executed "pik sw 187".
gem install rdiscount --platform=ruby
ruby -rubygems -rrdiscount -e "puts RDiscount.new('**hello**').to_html"
gem uninstall rdiscount
gem install rdiscount --platform=ruby
ruby -rubygems -rrdiscount -e "puts RDiscount.new('**hello**').to_html"
I get a "ruby: no such file to load -- rdiscount (LoadError)" but when I try the following in irb, things work:
irb>require 'rubygems'
irb>require 'rdiscount'
irb>puts RDiscount.new('**hello**').to_html
Command line require in Ruby 1.8 is the C version, so you need to:
ruby -rubygems -e "require 'rdiscount; ..."
For RubyGems own custom require is used.
AFAIK. 1.9 do not suffer from this.
wow, you're right...crap that's _really_ subtle :(
For the record that is going to be fixed in future updates of Ruby, a
patch has been sent an applied.