Skip to content

Need to make oj work because of its runtime dependency on boxr. #3751

@swapab

Description

@swapab

Environment

  • JRuby version :
    jruby 9.0.0.0 (2.2.2) 2015-07-21 e10ec96 Java HotSpot(TM) 64-Bit Server VM 25.65-b01 on 1.8.0_65-b17 +jit [linux-amd64]

  • Operating system and platform

    ➜ trunk uname -a
    Linux swapnil-Lenovo-Z50-70 4.2.0-27-generic fix [JRUBY-5765]: cext build fails if 10.4 sdk installed #32-Ubuntu SMP Fri Jan 22 04:49:08 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

    ➜ trunk lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 15.10
    Release: 15.10
    Codename: wily

Relevant info:

This is not an issue, really. Just a situation.
I am using boxr to communicate with Box API.

boxr : I need oj. Runtime dependency you know.
jruby : Please Use alternatives(gson, json or json_pure instead)
boxr : I like Oj

Me : How can I make them both settle, so that everyone is happy ?

Error log:

Installing oj 2.12.9 with native extensions

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/home/swapnil/.rvm/rubies/jruby-9.0.0.0/bin/jruby -r ./siteconf20160322-8577-urgrdc.rb extconf.rb

NotImplementedError: C extensions are not supported
at /home/swapnil/.rvm/rubies/jruby-9.0.0.0/lib/ruby/stdlib/mkmf.rb:1
require at org/jruby/RubyKernel.java:940
(root) at /home/swapnil/.rvm/rubies/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
at extconf.rb:1

extconf failed, exit code 1

Gem files will remain installed in /home/swapnil/.rvm/gems/jruby-9.0.0.0@JayApp/gems/oj-2.12.9 for inspection.
Results logged to /home/swapnil/.rvm/gems/jruby-9.0.0.0@JayApp/extensions/universal-java-1.8/2.2.0/oj-2.12.9/gem_make.out

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions