# Igems update --system, \[BUG\] invalid exec\_format "ir", no %s

**URL:** <https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719>\
**Category:** IronRuby\
**Created:** [June 25, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719 "2010-06-25T19:35:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [June 25, 2010, 7:35pm UTC](https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719/1 "2010-06-25T19:35:01Z")

</div>

Hi all, Ruby n00b here. Longtime Windows/.NET guy primarily.

Trying to get IronRuby and RoR up and running on Windows 7 x64 with  
IIS7.5, with .NET 4.0 installed along with the IronRuby 1.0v4 release.

Running into the RubyGems igem update --system issue with the response  
of:

[BUG] invalid exec\_format “ir”, no %s

I’ve seen Marcin Obel’s/Kevin R.'s fix:

> <https://gist.github.com/kradcliffe/379763>

I’ve tried it, but I still get the error. I’ve put that snippet in an  
ironruby.rb under ruby\1.8, ruby\1.8\gems\rubygems\default,  
site\_ruby\1.8\gems\rubygems and site\_ruby\1.8\rubygems\defaults, all to  
no avail.

Am I missing something? Doing something obviously wrong?

Thanks in advance-  
–Andy Badera

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [June 25, 2010, 8:26pm UTC](https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719/2 "2010-06-25T20:26:09Z")

</div>

## [http://hotgazpacho.org/2010/05/ironruby-gem-update-system/](http://hotgazpacho.org/2010/05/ironruby-gem-update-system/) [http://hotgazpacho.org/2010/05/ironruby-gem-update-system/](http://hotgazpacho.org/2010/05/ironruby-gem-update-system/)

Will G.

> **[hotgazpacho](http://hotgazpacho.org/)**

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [June 25, 2010, 8:28pm UTC](https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719/3 "2010-06-25T20:28:23Z")

</div>

Will G. wrote:

> ## [http://hotgazpacho.org/2010/05/ironruby-gem-update-system/](http://hotgazpacho.org/2010/05/ironruby-gem-update-system/) [http://hotgazpacho.org/2010/05/ironruby-gem-update-system/](http://hotgazpacho.org/2010/05/ironruby-gem-update-system/)
> 
> Will G.  
> [http://hotgazpacho.org/](http://hotgazpacho.org/)

Hi Will,

I’d tried your version as well, same result. I’ll doublecheck now though  
…

–ab

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [June 25, 2010, 8:33pm UTC](https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719/4 "2010-06-25T20:33:20Z")

</div>

Andrew Badera wrote:

> Will G. wrote:
> 
> > ## [http://hotgazpacho.org/2010/05/ironruby-gem-update-system/](http://hotgazpacho.org/2010/05/ironruby-gem-update-system/) [http://hotgazpacho.org/2010/05/ironruby-gem-update-system/](http://hotgazpacho.org/2010/05/ironruby-gem-update-system/)
> > 
> > Will G.  
> > [http://hotgazpacho.org/](http://hotgazpacho.org/)
> 
> Hi Will,
> 
> I’d tried your version as well, same result. I’ll doublecheck now though  
> …
> 
> –ab

Yeah, I put it there, with your code Will, and still had the same result  
unfortunately.

I’m a little curious, IronRuby now ships with .NET 4.0 I believe, which  
I have installed. Any chance I’m kicking off my explicitly-installed  
igem but getting the wrong ir down the line? “where ir” seems to point  
to the right ir.exe …

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [June 25, 2010, 8:58pm UTC](https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719/5 "2010-06-25T20:58:21Z")

</div>

I don’t use the i-whatever batch files. Untill this fix, I just did

ir -S whatever

–  
Will G.  
[http://hotgazpacho.org/](http://hotgazpacho.org/)

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [June 25, 2010, 9:07pm UTC](https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719/6 "2010-06-25T21:07:02Z")

</div>

Will G. wrote:

> I don’t use the i-whatever batch files. Untill this fix, I just did
> 
> ir -S whatever
> 
> –  
> Will G.  
> [http://hotgazpacho.org/](http://hotgazpacho.org/)

Forgive me for not being super knowledgeable about syntax, but what do I  
need to pass it as a param for the rubygems package? I’ve downloaded  
1.3.7 explicitly, but not sure what context to use ir -S in …

---

<div class="post-metadata">

**Author:** ![bfsog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/71c47a/32.png) [@bfsog](https://www.ruby-forum.com/u/bfsog)\
**Post date:** [June 25, 2010, 10:08pm UTC](https://www.ruby-forum.com/t/igems-update-system-bug-invalid-exec-format-ir-no-s/190719/7 "2010-06-25T22:08:36Z")

</div>

If you put the file I referenced in the correct location, you can then  
just:

ir -S gem update --system

After that, the gem and gem.bat files in %IronRubyRoot%\bin get  
re-written  
with the correct path to the correct interpreter (as will any scripts  
installed by ruby gems AFTER this), so from then on, you can just:

gem dosomething

assuming %IronRubyRoot%\bin is in you path ahead of other Ruby binary  
directories. I use pik to manage this [GitHub - vertiginous/pik: Ruby version manager for Windows](http://github.com/vertiginous/pik)  
(pik  
is like rvm for Windows).

–  
Will G.  
[http://hotgazpacho.org/](http://hotgazpacho.org/)
