Bug?

Will G. wrote:

Ah, I see that there is no C code in the ext directory of the
faster_rubygems code: GitHub - rdp/faster_rubygems: A helper to dramatically speedup the time it takes to run a 'require rubygems'. DEPRECATED shouldn't be necessary with newer versions of rubygems, at least I hope not. If it is message me so I can work on this again

It looks like a problem with spaces in the path to your IronRuby
install.
“C:\Program FIles” is not being properly escaped, and the script chokes.
http://github.com/rdp/faster_rubygems

The offending line is auto generated by rubygems for me (1.3.7).
I am unsure how the other poster found success for his, though. That is
odd.

“C:/Program Files/IronRuby 1.0v4/bin/ir.exe” -rubygems C:/Program
Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake
RUBYARCHDIR=“C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib”
RUBYLIBDIR=“C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib”
unknown: Could not find file ‘C:\Program’. (Errno::ENOENT)

Seems pretty clear to me that it is a path interpolation problem. “Could
not
find file ‘C:\Program’”. Doesn’t seem to like the space in the directory
name.

True, but I’m not seeing this reproduce (granted I’m trying on a 64-bit
machine, but that shouldn’t make a difference). Can you list what
envvars you have set?

C:\Program Files (x86)\IronRuby 1.0v4\bin>igem install faster_rubygems
Building native extensions. This could take a while…

faster_rubygems installed! see the readme for post-install instructions:

recreating all faster_rubygems caches
faster_rubygems: creating caches
.
.
Successfully installed faster_rubygems-0.9.2
1 gem installed
Installing ri documentation for faster_rubygems-0.9.2…
Installing RDoc documentation for faster_rubygems-0.9.2…

C:\Program Files (x86)\IronRuby 1.0v4\bin>

From: [email protected]
[mailto:[email protected]] On Behalf Of Will G.
Sent: Tuesday, June 29, 2010 11:42 AM
To: [email protected]
Subject: Re: [Ironruby-core] bug?

“C:/Program Files/IronRuby 1.0v4/bin/ir.exe” -rubygems C:/Program
Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake
RUBYARCHDIR=“C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib”
RUBYLIBDIR=“C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib”
unknown: Could not find file ‘C:\Program’. (Errno::ENOENT)

Seems pretty clear to me that it is a path interpolation problem. “Could
not find file ‘C:\Program’”. Doesn’t seem to like the space in the
directory name.

Jimmy S. wrote:

The public version of faster_rubygems on RubyGems.org is 0.9.2, which
installs fine with IronRuby. It looks like you’re trying to install
0.9.3 from a .gem file, so there is most likely an issue with the new
gem? Try installing 0.9.2 by just doing “igem install faster_rubygems”
and see if that works for you.

C:\dev\digitalarchive_trunk>igem install faster_rubygems
Building native extensions. This could take a while…
ERROR: Error installing faster_rubygems:
ERROR: Failed to build gem native extension.

“C:/Program Files/IronRuby 1.0v4/bin/ir.exe” mkrf_conf.rb
Installed–thank you for trying out faster_rubygems
recreating all faster_rubygems caches
faster_rubygems: creating all caches
…warning, unable to write cache to:C:/Program Files/IronRuby
1.0v4/lib/ruby/gems/1.8/.faster_rubygems_cache

“C:/Program Files/IronRuby 1.0v4/bin/ir.exe” -rubygems C:/Program
Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake
RUBYARCHDIR=“C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.11.1/lib”
RUBYLIBDIR=“C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.11.1/lib”
unknown: Could not find file ‘C:\Program’. (Errno::ENOENT)

Gem files will remain installed in C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.11.1 for inspection.
Results logged to C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.11.1/ext/gem_make.out

Unable to install gems 1.3.7 to try that, for some reason…

I’m really not sure why it would succeed on others’ computers. Note
that it’s a quite experimental gem so you may want to use it on a
throw-away computer.

Note also that if you do install it, try running “rake” or whatever you
want before and after–it “should” give a substantial speed increase
over the normal rubygems startup time, but I’m unable to test that on IR
without being able to install…
-r

The public version of faster_rubygems on RubyGems.org is 0.9.2, which
installs fine with IronRuby. It looks like you’re trying to install
0.9.3 from a .gem file, so there is most likely an issue with the new
gem? Try installing 0.9.2 by just doing “igem install faster_rubygems”
and see if that works for you.

From: [email protected]
[mailto:[email protected]] On Behalf Of Jimmy
Schementi
Sent: Tuesday, June 29, 2010 11:52 AM
To: [email protected]
Subject: Re: [Ironruby-core] bug?

True, but I’m not seeing this reproduce (granted I’m trying on a 64-bit
machine, but that shouldn’t make a difference). Can you list what
envvars you have set?

C:\Program Files (x86)\IronRuby 1.0v4\bin>igem install faster_rubygems
Building native extensions. This could take a while…

faster_rubygems installed! see the readme for post-install instructions:

recreating all faster_rubygems caches
faster_rubygems: creating caches
.
.
Successfully installed faster_rubygems-0.9.2
1 gem installed
Installing ri documentation for faster_rubygems-0.9.2…
Installing RDoc documentation for faster_rubygems-0.9.2…

C:\Program Files (x86)\IronRuby 1.0v4\bin>

From: [email protected]
[mailto:[email protected]] On Behalf Of Will G.
Sent: Tuesday, June 29, 2010 11:42 AM
To: [email protected]
Subject: Re: [Ironruby-core] bug?

“C:/Program Files/IronRuby 1.0v4/bin/ir.exe” -rubygems C:/Program
Files/IronRuby 1.0v4/lib/ironruby/gems/1.8/gems/rake-0.8.7/bin/rake
RUBYARCHDIR=“C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib”
RUBYLIBDIR=“C:/Program Files/IronRuby
1.0v4/lib/ironruby/gems/1.8/gems/faster_rubygems-0.9.3/lib”
unknown: Could not find file ‘C:\Program’. (Errno::ENOENT)

Seems pretty clear to me that it is a path interpolation problem. “Could
not find file ‘C:\Program’”. Doesn’t seem to like the space in the
directory name.