<font class="Apple-style-span" color="#333399">I'll try it again for MRI.</font><div><font class="Apple-style-span" color="#333399"><br></font></div><div><font class="Apple-style-span" color="#333399">I don't get socket errors for MRI when I try to use it to push gems etc.</font></div>
<div><font class="Apple-style-span" color="#333399">On mac I get socket errors when trying to install gems. When I use that same version on ubuntu karmic it will tell me invalid path errors (this has been reported by somebody on codeplex). When I try to push gems on windows/mac/linux I get the Socket error. More about this in the bottom of this mail</font></div>
<div><font class="Apple-style-span" color="#333399"><br></font></div><div><font class="Apple-style-span" color="#333399">I get daily digests of the workitems on codeplex but haven't added any of those yet.. expect a flurry of bug submissions when I'm through :)</font></div>
<div><br></div><div>installing gems on my mac</div><div><br></div><div><div>+ivan@ivan-mbp:~</div><div>» igem install -V --backtrace --debug caricature</div><div>ERROR: While executing gem ... (NameError)</div>
<div> uninitialized constant OpenSSL::SSL::SSLSocket</div><div><span style="white-space:pre">        </span>:0:in `const_missing'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/1.8/net/http.rb:567:in `connect'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/1.8/net/http.rb:553:in `do_start'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/1.8/net/http.rb:548:in `start'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:246:in `connection_for'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:320:in `request'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:279:in `open_uri_or_path'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb:164:in `fetch_path'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:219:in `load_specs'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:192:in `list'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:188:in `list'</div><div><span style="white-space:pre">        </span>:0:in `each'</div>
<div><span style="white-space:pre">        </span>mscorlib:0:in `CallSite.Target'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:123:in `find_matching'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:69:in `fetch'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:99:in `find_gems_with_sources'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:192:in `find_spec_by_name_and_version'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:213:in `install'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:118:in `execute'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in `execute'</div>
<div><span style="white-space:pre">        </span>:0:in `each'</div><div><span style="white-space:pre">        </span>mscorlib:0:in `CallSite.Target'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:257:in `invoke'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in `process_args'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in `run'</div>
<div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'</div><div><span style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/bin/igem:25</div>
<div><br></div>
<div>+ivan@ivan-mbp:~</div><div>» igem env</div><div>RubyGems Environment:</div><div> - RUBYGEMS VERSION: 1.3.5</div><div> - RUBY VERSION: 1.8.6 (2009-03-31 patchlevel 368) [i386-linux]</div><div> - INSTALLATION DIRECTORY: /usr/local/cloudslide/ironruby/lib/ironruby/gems/1.8</div>
<div> - RUBY EXECUTABLE: /usr/local/cloudslide/ironruby/bin/ir.exe</div><div> - EXECUTABLE DIRECTORY: /usr/local/cloudslide/ironruby/bin</div><div> - RUBYGEMS PLATFORMS:</div><div> - ruby</div><div> - x86-mswin32-60</div>
<div> - GEM PATHS:</div><div> - /usr/local/cloudslide/ironruby/lib/ironruby/gems/1.8</div><div> - /Users/ivan/.gem/ironruby/1.8</div><div> - GEM CONFIGURATION:</div><div> - :update_sources => true</div><div>
- :verbose => true</div><div> - :benchmark => false</div><div> - :backtrace => false</div><div> - :bulk_threshold => 1000</div><div> - :sources => ["<a href="https://user:password@gems.cloudslide.net" target="_blank">https://user:password@gems.cloudslide.net</a>", "<a href="http://gemcutter.org" target="_blank">http://gemcutter.org</a>", "<a href="http://gems.rubyforge.org/" target="_blank">http://gems.rubyforge.org/</a>", "<a href="http://gems.github.com/" target="_blank">http://gems.github.com/</a>", "<a href="http://gems.opscode.com/" target="_blank">http://gems.opscode.com/</a>"]</div>
<div> - "gemcutter_key" => "blahblah"</div><div> - REMOTE SOURCES:</div><div> - <a href="https://user:password@gems.cloudslide.net" target="_blank">https://user:password@gems.cloudslide.net</a></div>
<div> - <a href="http://gemcutter.org" target="_blank">http://gemcutter.org</a></div>
<div> - <a href="http://gems.rubyforge.org/" target="_blank">http://gems.rubyforge.org/</a></div><div> - <a href="http://gems.github.com/" target="_blank">http://gems.github.com/</a></div><div> - <a href="http://gems.opscode.com/" target="_blank">http://gems.opscode.com/</a></div>
<div><br></div><div><font class="Apple-style-span" color="#333399">When I remove the line that uses https:// from the sources I don't get the socket error anymore because it doesn't need it anymore. That would also explain why I get different errors on the ubuntu box, the one I use for building and testing ironruby doesn't need the https:// source.</font></div>
</div>
<div><font class="Apple-style-span" color="#333399"><br></font></div><div><font class="Apple-style-span" color="#333399">After removing that source this is the result:</font></div><div><div><br></div><div><div>» igem install -V caricature</div>
<div>GET 302 Found: <a href="http://gemcutter.org/latest_specs.4.8.gz">http://gemcutter.org/latest_specs.4.8.gz</a></div><div>GET 304 Not Modified: <a href="http://production.s3.rubygems.org/latest_specs.4.8.gz">http://production.s3.rubygems.org/latest_specs.4.8.gz</a></div>
<div>GET 302 Found: <a href="http://gems.rubyforge.org/latest_specs.4.8.gz">http://gems.rubyforge.org/latest_specs.4.8.gz</a></div><div>GET 304 Not Modified: <a href="http://production.s3.rubygems.org/latest_specs.4.8.gz">http://production.s3.rubygems.org/latest_specs.4.8.gz</a></div>
<div>GET 200 OK: <a href="http://gems.github.com/latest_specs.4.8.gz">http://gems.github.com/latest_specs.4.8.gz</a></div><div>GET 304 Not Modified: <a href="http://gems.opscode.com/latest_specs.4.8.gz">http://gems.opscode.com/latest_specs.4.8.gz</a></div>
<div>Installing gem uuidtools-2.1.1</div><div>ERROR: While executing gem ... (ArgumentError)</div><div> Invalid path</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib:0:in `GetDirectoryName'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>:0:in `mkdir'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/1.8/fileutils.rb:217:in `mkdir_p'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/1.8/fileutils.rb:215:in `mkdir_p'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>:0:in `reverse_each'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib:0:in `CallSite.Target'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/1.8/fileutils.rb:201:in `mkdir_p'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>:0:in `each'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib:0:in `CallSite.Target'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb:125:in `initialize'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:239:in `install'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:222:in `install'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>:0:in `each'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib:0:in `CallSite.Target'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:118:in `execute'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb:115:in `execute'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>:0:in `each'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>mscorlib:0:in `CallSite.Target'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/command.rb:257:in `invoke'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:132:in `process_args'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:102:in `run'</div>
<div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:58:in `run'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>/usr/local/cloudslide/ironruby/bin/igem:25</div>
<div><br></div></div><div><br></div><div><font class="Apple-style-span" color="#333399">content of ir script (this should take care of mapping windows-isms to unix-isms with regards to casing as well as / and \ issues)</font></div>
<div><br></div><div>» cat /usr/local/cloudslide/ironruby/bin/ir</div><div>#!/usr/bin/env sh</div><div><br></div><div>fpath=`which $0`</div><div>fdir=`dirname $fpath`</div><div>export MONO_IOMAP=all</div><div>export MONO_MANAGED_WATCHER=1 </div>
<div>mono $fdir/ir.exe $*</div><div><br></div></div><div><br></div><div>---<br>Met vriendelijke groeten - Best regards - Salutations<br>Ivan Porto Carrero<br>Blog: <a href="http://flanders.co.nz" target="_blank">http://flanders.co.nz</a><br>
Twitter: <a href="http://twitter.com/casualjim" target="_blank">http://twitter.com/casualjim</a><br>
Author of IronRuby in Action (<a href="http://manning.com/carrero" target="_blank">http://manning.com/carrero</a>)<br><br>
<br><br><div class="gmail_quote">On Thu, Feb 11, 2010 at 11:43 PM, Shri Borde <span dir="ltr"><<a href="mailto:Shri.Borde@microsoft.com" target="_blank">Shri.Borde@microsoft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="font-family:Tahoma;direction:ltr;color:#000000;font-size:13px">
<div>What problem does "gem sources -a" have with %HOME%? Does MRI have the same problem? If %HOME% is not set, IronRuby and MRI should both use the same algorithm to figure out the return value of File.expand_path("~") based on other environment variables
like %USERPROFILE%.</div>
<div> </div>
<div>Do you get the SocketError with MRI? You could try running "gem install" and "gem uninstall" in a loop with MRI to see if its an issue with the machine configuration itself.</div>
<div> </div>
<div>I do have a fix for the OpenSSL issue. It does get more active_resource tests working. However, I am not sure if it is sufficient to unblock your scenarios.</div>
<div> </div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font color="#000000" size="2" face="Tahoma"><b>From:</b> <a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a> [<a href="mailto:ironruby-core-bounces@rubyforge.org" target="_blank">ironruby-core-bounces@rubyforge.org</a>] on behalf of Ivan Porto Carrero [<a href="mailto:ivan@whiterabbitconsulting.eu" target="_blank">ivan@whiterabbitconsulting.eu</a>]<br>
<b>Sent:</b> Thursday, February 11, 2010 10:37 AM<br>
<b>To:</b> ironruby-core<br>
<b>Subject:</b> [Ironruby-core] running some benchmarks<br>
</font><br>
</div><div><div></div><div>
<div></div>
<div>Hi
<div><br>
</div>
<div>I'm currently helping David m. Peterson by setting up 2 windows boxes with ironruby and running a few benchmarks and tests with it. </div>
<div>For example I'm going to try running a few of the complexer rails apps and see how it holds up, i'm thinking about spree and redmine atm.</div>
<div>We'll also run the ruby shootout suite, if you have more suggestions they're welcome.</div>
<div><br>
</div>
<div>The machines are hosted on EC2.</div>
<div><br>
</div>
<div>However using gem sources -a proves to be a little difficult if you don't have the %HOME% environment variable set. </div>
<div>on the both machines I could set %HOME%=%USERPROFILE% in the environment variables to remedy this, but I feel like this is something that should be handled by the installer or by the ironruby gem library.</div>
<div><br>
</div>
<div>I couldn't use the installer in windows 2003 R2 SP2 telling me I needed a higher service pack for my windows, but there is no higher one when I wanted to get that one.</div>
<div><br>
</div>
<div>I also ran into issues installing a bunch of gems at once. Below the rails gem is the one causing trouble. The problems for the rails gem go away after I installed the gemcutter gem (?), but then it fails on the rspec-rails gem with the same error. If
I then remove rails from the list of gems to install everything installs fine.</div>
<div><br>
</div>
<div>
<div>D:\Console2>ir -S gem install caricature rails rspec-rails shoulda test-unit ZenTest ironruby-sqlite3 ironruby-sqlserver</div>
<div>Successfully installed uuidtools-2.1.1</div>
<div>Successfully installed caricature-0.7.6</div>
<div>ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)</div>
<div> SocketError: An established connection was aborted by the software in your host machine (<a href="http://gemcutter.org/gems/rake-0.8.7.gem" target="_blank">http://gemcutter.org/gems/rake-0.8.7.gem</a>)</div>
<div><br>
</div>
<div>D:\Console2>ir -S gem install rails rspec-rails shoulda test-unit ZenTest ironruby-sqlite3 ironruby-sqlserver</div>
<div>ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)</div>
<div> SocketError: An established connection was aborted by the software in your host machine (<a href="http://gemcutter.org/gems/rack-1.0.1.gem" target="_blank">http://gemcutter.org/gems/rack-1.0.1.gem</a>)</div>
<div><br>
</div>
<div>D:\Console2>ir -S gem env</div>
<div>RubyGems Environment:</div>
<div> - RUBYGEMS VERSION: 1.3.5</div>
<div> - RUBY VERSION: 1.8.6 (2009-03-31 patchlevel 368) [i386-mswin32]</div>
<div> - INSTALLATION DIRECTORY: D:/ironruby/lib/ironruby/gems/1.8</div>
<div> - RUBY EXECUTABLE: D:/ironruby/bin/ir.exe</div>
<div> - EXECUTABLE DIRECTORY: D:/ironruby/bin</div>
<div> - RUBYGEMS PLATFORMS:</div>
<div> - ruby</div>
<div> - x86-mswin32-60</div>
<div> - GEM PATHS:</div>
<div> - D:/ironruby/lib/ironruby/gems/1.8</div>
<div> - C:/Users/casualjim/.gem/ironruby/1.8</div>
<div> - GEM CONFIGURATION:</div>
<div> - :update_sources => true</div>
<div> - :verbose => true</div>
<div> - :benchmark => false</div>
<div> - :backtrace => false</div>
<div> - :bulk_threshold => 1000</div>
<div> - :sources => ["<a href="http://gemcutter.org" target="_blank">http://gemcutter.org</a>"]</div>
<div> - REMOTE SOURCES:</div>
<div> - <a href="http://gemcutter.org" target="_blank">http://gemcutter.org</a></div>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Additionally on windows 2003 ironruby can't find gem.bat and I did set the necessary environment variables. PATH, HOME. install</div>
<div><br>
</div>
<div>
<div>D:\Console2>ir -S gem install caricature rails rspec-rails shoulda test-unit ZenTest ironruby-sqlite3 ironruby-sqlserver</div>
<div>unknown: Could not find file 'D:\Console2\gem'. (Errno::ENOENT)</div>
<div><br>
</div>
<div><br>
</div>
<div>D:\Console2>ir -v</div>
<div>IronRuby 0.9.4.0 on .NET 2.0.50727.3603</div>
<div>Copyright (c) Microsoft Corporation. All rights reserved.</div>
<div><br>
</div>
<div>>>> exit</div>
<div><br>
</div>
<div><br>
</div>
<div>Apart from the issues above, I'm unable to push gems to gemcutter with ironruby it fails with an OpenSSL error. The same error I get on my mac when I want to install gems with ironruby.</div>
<div><br>
</div>
<div>I'll keep you updated as I make more progress and/or come across more issues.</div>
---<br>
Met vriendelijke groeten - Best regards - Salutations<br>
Ivan Porto Carrero<br>
Blog: <a href="http://flanders.co.nz" target="_blank">http://flanders.co.nz</a><br>
Twitter: <a href="http://twitter.com/casualjim" target="_blank">http://twitter.com/casualjim</a><br>
Author of IronRuby in Action (<a href="http://manning.com/carrero" target="_blank">http://manning.com/carrero</a>)<br>
<br>
</div>
</div>
</div></div></div>
</div>
</div>
<br>_______________________________________________<br>
Ironruby-core mailing list<br>
<a href="mailto:Ironruby-core@rubyforge.org" target="_blank">Ironruby-core@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/ironruby-core" target="_blank">http://rubyforge.org/mailman/listinfo/ironruby-core</a><br>
<br></blockquote></div><br></div>