# Bug?

**URL:** <https://www.ruby-forum.com/t/bug/188816>\
**Category:** IronRuby\
**Created:** [May 18, 2010, 9:00pm UTC](https://www.ruby-forum.com/t/bug/188816 "2010-05-18T21:00:22Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [June 25, 2010, 9:21pm UTC](https://www.ruby-forum.com/t/bug/188816/21 "2010-06-25T21:21:53Z")

</div>

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 · GitHub](http://github.com/rdp/faster_rubygems)
> 
> 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](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.

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [June 29, 2010, 8:45pm UTC](https://www.ruby-forum.com/t/bug/188816/22 "2010-06-29T20:45:45Z")

</div>

> “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.

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [June 29, 2010, 8:53pm UTC](https://www.ruby-forum.com/t/bug/188816/23 "2010-06-29T20:53:57Z")

</div>

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:

> **[GitHub - rdp/faster\_rubygems: A helper to dramatically speedup the time it...](https://github.com/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 messag...

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: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Will G.  
Sent: Tuesday, June 29, 2010 11:42 AM  
To: removed\_email\_address@domain.invalid  
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.

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [June 30, 2010, 3:58pm UTC](https://www.ruby-forum.com/t/bug/188816/24 "2010-06-30T15:58:44Z")

</div>

Jimmy S. wrote:

> The public version of faster\_rubygems on [RubyGems.org](http://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

---

<div class="post-metadata">

**Author:** ![rogerdpack](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/45deac/32.png) [@rogerdpack](https://www.ruby-forum.com/u/rogerdpack)\
**Post date:** [June 29, 2010, 9:56pm UTC](https://www.ruby-forum.com/t/bug/188816/25 "2010-06-29T21:56:35Z")

</div>

The public version of faster\_rubygems on [RubyGems.org](http://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: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Jimmy  
Schementi  
Sent: Tuesday, June 29, 2010 11:52 AM  
To: removed\_email\_address@domain.invalid  
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:

> **[GitHub - rdp/faster\_rubygems: A helper to dramatically speedup the time it...](https://github.com/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 messag...

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: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] On Behalf Of Will G.  
Sent: Tuesday, June 29, 2010 11:42 AM  
To: removed\_email\_address@domain.invalid  
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.

[Previous page](https://www.ruby-forum.com/t/bug/188816.md?page=1)
