我可以在铁红宝石中运行红宝石吗?

时间:2020-03-05 18:47:57  来源:igfitidea点击:

Ironruby的预发行版目前有可能运行红宝石吗?好像我必须设置一个环境变量才能找到它们?

解决方案

回答

如果在使用rubygems之前正确设置了ENV ['GEM_PATH'],则有时在IronRuby下可以使用宝石。我实际上正在立即解决此问题。

同样,这种问题可能更适合IronRuby邮件列表,而不是适合StackOverflow。

回答

我们已经可以在IronRuby下运行rubygems相当一段时间了。只需从codeplex下载并安装最新的IronRuby,然后在命令行上运行igem

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

回答

使用IronRuby 1.0 Alpha2. 我们应该可以立即使用igem.bat。根据Jim Deville于2008年11月19日的说法

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

从那时起,我们现在拥有每日构建的官方站点。我们可以在http://www.ironruby.net/下载

然后,
将GEM_PATH设置到\ lib \ ruby​​ \ gems \ 1.8目录,例如c:\ ruby​​ \ lib \ ruby​​ \ gems \ 1.8

c:\> set GEM_PATH=c:\ruby\lib\ruby\gems.8

测试

c:\> igem.bat