Oy, I wonder if that's the problem. Makes sense. Checking the compilation mode of the ruby executable gives me the following 32bit signature:
$ file `which ruby` /opt/local/bin/ruby: Mach-O executable i386 Does anybody know how to make MacPorts compile Ruby 64bit instead of 32bit? Daniel On Thu, Jan 8, 2009 at 12:01 PM, Alex Boisvert <[email protected]> wrote: > I don't know if it's going to be helpful but that's the same error I get > when mixing 64-bit Ruby with 32-bit Java (or *vice versa*). > > alex > > On Thu, Jan 8, 2009 at 9:41 AM, Daniel Spiewak <[email protected]> > wrote: > > > I'm consistently getting the following error when my $JAVA_HOME points to > > Apple's JDK version 1.6: > > > > can't create Java VM > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in > > `load' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/rjb.rb:114:in > > `load' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/java/packaging.rb:578:in > > `before_define' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in > > `call' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in > > `call_callbacks' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in > > `each' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:631:in > > `call_callbacks' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in > > `send' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:216:in > > `define' > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call' > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `execute' > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each' > > /opt/local/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:624:in > > `execute' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:146:in > > `switch_to_namespace' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:623:in > > `execute' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:637:in > > `invoke_with_call_chain' > > /opt/local/lib/ruby/1.8/monitor.rb:242:in `synchronize' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:623:in > > `invoke_with_call_chain' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:618:in > > `invoke' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:400:in > > `to_proc' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in > > `each' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:281:in > > `projects' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/project.rb:862:in > > `projects' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:407:in > > `raw_load_buildfile' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:218:in > > `load_buildfile' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in > > `standard_exception_handling' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:213:in > > `load_buildfile' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:137:in > > `run' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:503:in > > `standard_exception_handling' > > > > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/lib/buildr/core/application.rb:135:in > > `run' > > /opt/local/lib/ruby/gems/1.8/gems/buildr-1.3.4/bin/buildr:19 > > /opt/local/bin/buildr:19:in > > > > Of moderate interest is the possibly-related fact that I get the same > error > > with SoyLatte. Apple's JDK 1.5 works fine. > > > > I've Googled until my fingers went numb to no avail. Any idea what might > > be > > going on here? > > > > Daniel > > >
