 |
Forums |
Admin Discussion Forums: help Start New Thread
By: Charlie Savage
RE: Gem install on Windows Vista x64 [ reply ] 2008-12-22 17:48
|
Hi Joe,
Yes, I bet you are right. The path stuff is fine. The extension stuff is weird. But its easy enough to work around, just add add an extension task to the rakefile that points to the default task. I'll add that into the next release.
|
By: Joe Hershberger
RE: Gem install on Windows Vista x64 [ reply ] 2008-12-21 02:42
|
Hey Charlie... It's actually the example from the first post:
rake RUBYARCHDIR=c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.6-x86-mswin32-60
/lib RUBYLIBDIR=c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.6-x86-mswin32-60/
lib extension
It's calling "rake extension" and also defining some paths. I'm guessing that the gem code is making a mistake somewhere as to what rake command to run because it is using a constant like "if WIN32" or something and that won't be true in Vista 64.
Cheers!
|
By: Joe Hershberger
RE: Gem install on Windows Vista x64 [ reply ] 2008-12-17 02:30
|
Hey Charlie,
I just looked into it and based on the trace included in my first post it looks like it is trying to call "rake extension" on the Rakefile in libxml/ext/mingw, which is not defined (only "install" is). I'm not sure how it is deciding to use "extension". Which one is wrong? Not sure how this is related to the OS yet.
I also tried the new 0.9.7 that was just released. With it I get a completely different error...
ERROR: While executing gem ... (Zlib::BufError)
buffer error
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:351:in `read'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:351:in `read'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/format.rb:64:in `from_io'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:448:in `each_entry'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:442:in `loop'
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb:442:in `each_entry'
...
...
Not sure what this is all about. Almost seems like the gem is corrupt. Dunno.
Thanks,
-Joe
|
By: Charlie Savage
RE: Gem install on Windows Vista x64 [ reply ] 2008-12-13 00:53
|
Hey Joe,
Yeah, not sure. Don't have any tests of Vista x64. The building extensions bit is misleading, what is happening there is the pre-built binary in libxml/ext/mingw is being copied to libxml/lib.
You could just move those your files and see if they work (copy *.so and *.dll)
Now what is interesting is why the copy doesn't work. Any chance you can debug that? See libxml/ext/ming/Rakefile. That is what is run when gems says "building native extension."
Thanks - Charlie
|
By: Joe Hershberger
Gem install on Windows Vista x64 [ reply ] 2008-12-10 21:16
|
I couldn't find any mention about this... I attempted to install the gem on a Vista64 machine. After selecting the " 1. libxml-ruby 0.9.6 (x86-mswin32-60)" option, I get the following:
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
rake RUBYARCHDIR=c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.6-x86-mswin32-60
/lib RUBYLIBDIR=c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.6-x86-mswin32-60/
lib extension
(in c:/ruby/lib/ruby/gems/1.8/gems/libxml-ruby-0.9.6-x86-mswin32-60/ext/mingw)
rake aborted!
Don't know how to build task 'extension'
I'm guessing it's related to the 64-bit Vista environment not quite being what the gem is expecting. It seems similar to the output when the path has a space in it on a 32-bit machine, but not the same task.
Has anyone tried this before and was it successful?
Thanks,
-Joe
|
|
 |