igem update --system issue on Windows

3 views
Skip to first unread message

Andrew Badera

unread,
Jun 25, 2010, 1:47:43 PM6/25/10
to techva...@googlegroups.com
Hi all,

Running into a problem I hit when I tried to get IronRuby and RoR up on one of my Win7 machines back in March.

C:\Program Files (x86)\IronRuby 1.0v4\bin>igem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.7
Updating RubyGems to 1.3.7
Installing RubyGems 1.3.7
ERROR:  While executing gem ... (Gem::Exception)
    [BUG] invalid exec_format "ir", no %s

Apparently RubyGems expects "ruby" not "ir" as the runtime executable. There's a fix:


But it doesn't seem to work for me despite putting it everyplace that the above links seem to mention:


Anyone have any thoughts or insight for a poor ol' Windows guy?

Thx-
--ab

Armando Di Cianno

unread,
Jun 25, 2010, 2:04:37 PM6/25/10
to techva...@googlegroups.com
Is igem really a .bat file of some kind? If it inherits the cmd
prompts environment, or if you can edit it, you can create something
similar to a bash alias.

e.g.

doskey ls=dir

... the above is really handy when you are forced to used Windows cmd,
but spend most of your time in BASH.

__armando

> --
> You received this message because you are subscribed to the Google Groups
> "TechValley Ruby Brigade" group.
> To post to this group, send email to techva...@googlegroups.com.
> To unsubscribe from this group, send email to
> techvalleyrb...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/techvalleyrb?hl=en.
>

Armando Di Cianno

unread,
Jun 25, 2010, 2:05:06 PM6/25/10
to techva...@googlegroups.com
... and to complete that thought:

doskey ruby=ir

__armando

Andrew Badera

unread,
Jun 25, 2010, 2:06:30 PM6/25/10
to techva...@googlegroups.com
Thanks, good idea, but no love apparently:


C:\Program Files (x86)\IronRuby 1.0v4\bin>c:\windows\system32\doskey.exe ruby=ir

C:\Program Files (x86)\IronRuby 1.0v4\bin>igem update --system
Updating RubyGems
Updating rubygems-update
Successfully installed rubygems-update-1.3.7
Updating RubyGems to 1.3.7
Installing RubyGems 1.3.7
ERROR:  While executing gem ... (Gem::Exception)
    [BUG] invalid exec_format "ir", no %s

--ab

Andrew Badera

unread,
Jun 25, 2010, 2:11:28 PM6/25/10
to techva...@googlegroups.com
Also, I kind of wonder, since IronRuby ships with .NET 4.0 now I believe, if I'm not using igem from my explicit install and 'accidentally' getting ir from the framework built-in ... "where ir" however does give me the explicit-install ...

--ab

Armando Di Cianno

unread,
Jun 25, 2010, 2:12:34 PM6/25/10
to techva...@googlegroups.com
Oh ... not sure of the syntax but try something like this and give it
another go:

doskey ruby="ir $*"

It's probably the parameters getting chopped off ....

__armando

Andrew Badera

unread,
Jun 25, 2010, 2:18:04 PM6/25/10
to techva...@googlegroups.com
Nope :( (cleared macros first)

c:\Program Files (x86)\IronRuby 1.0v4\Lib\ironruby\gems\1.8\gems\rubygems-update-1.3.7>c:\windows\system32\doskey ruby="ir $"

c:\Program Files (x86)\IronRuby 1.0v4\Lib\ironruby\gems\1.8\gems\rubygems-update-1.3.7>ir setup.rb
ERROR:  While executing gem ... (Gem::Exception)
    [BUG] invalid exec_format "ir", no %s


Armando Di Cianno

unread,
Jun 25, 2010, 2:28:47 PM6/25/10
to techva...@googlegroups.com
It's $* -- dollar-sign + star.

__armando

Andrew Badera

unread,
Jun 25, 2010, 2:30:31 PM6/25/10
to techva...@googlegroups.com
Good catch, thanks, but same result.

--ab

Andrew Badera

unread,
Jun 25, 2010, 3:31:49 PM6/25/10
to techva...@googlegroups.com
For the time being I manually copied the contents of the Lib folder ... what a pain ... will that even work ok? I don't know enough about how Ruby works ...

--ab
Reply all
Reply to author
Forward
0 new messages