Is it currently possible with pre release of ironruby to run rubygems? It seems as if I have to set an environment variable to find them?
You've been able to run rubygems under IronRuby for quite a while now. Simply download and install the latest IronRuby from codeplex, and run igem
on the command line
Original Answer:
I'm on that mailing list - to save you the digging, someone asked this a few weeks ago, and this was the answer
The answer (at this point) is no, you can't, but it doesn't seem like it'll be too far away.
PS: listen to curt. He's on the core team for ironruby. <3
if you set ENV['GEM_PATH'] correctly before using rubygems, then gems will work sometimes under IronRuby. I'm actually looking at fixing this right now.
Also, this kind of question is probably better suited for the IronRuby mailing list than it is for StackOverflow.
with IronRuby 1.0 Alpha 2. You should able to get igem.bat out of the box. According to Jim Deville on Nov 19 2008
Announcing the release of IronRuby 1.0 Alpha 2. You can download it on RubyForge (http://rubyforge.org/frs/?group_id=4359), I will have a tag in SVN soon. Notable features: the inclusion of iirb.bat, igem.bat, irails.bat, irake.bat! This is our first standalone release. Two caveats: If you want caller to work correctly, use -X:Interpret. If you want Rubygems to work, ensure that all of your sources end with a /. You can check in ~/.gemrc
Since then, We're now have official site with daily build. You can find at http://www.ironruby.net/Download
After than, Set GEM_PATH to your \lib\ruby\gems\1.8 directory, e.g. c:\ruby\lib\ruby\gems\1.8
c:\> set GEM_PATH=c:\ruby\lib\ruby\gems\1.8
Test with
c:\> igem.bat
来源:https://stackoverflow.com/questions/44973/can-i-run-rubygems-in-ironruby