buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Spiewak" <djspie...@gmail.com>
Subject Re: ::RJB.load on Apple's Java 6
Date Thu, 08 Jan 2009 18:14:15 GMT
Thinking about it, building a 64bit Ruby is probably a bad idea.  Any native
extensions for gems are bound to be 32bit only, which means I would break
most of my Ruby stuff if I tried it.  Drat.

I'll try SoyLatte i386.  If that doesn't work, I'll just start wailing in
the streets...

Daniel

On Thu, Jan 8, 2009 at 12:06 PM, Daniel Spiewak <djspiewak@gmail.com> wrote:

> 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 <boisvert@intalio.com>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 <djspiewak@gmail.com>
>> 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
>> >
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message