Can I run rubygems in ironruby?

女生的网名这么多〃 提交于 2019-12-01 00:04:06

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!