Skip to content

Doesn't work on JRuby #712

@barakcoh

Description

@barakcoh

Hi

Trying to upgrade my Logstash input https://github.com/Wondermall/logstash-input-google-cloud-pubsub
But gcloud-ruby's dependency on google-protobuf is causing it to trigger a native extensions build which is not supported by JRuby, making gcloud-ruby unusable for JRuby based environments which is a shame because it could be tremendously useful for Logstash.

I've tried JRUBY_OPTS="--2.0 -Xcext.enabled=true" but no dice, even though google-protobuf does check the RUBY_PLATFORM and it looks to me it shouldn't be running the native extensions build but I'm no expert in gem building.

Building native extensions.  This could take a while...
ERROR:  Error installing gcloud:
    ERROR: Failed to build gem native extension.

    /opt/logstash/vendor/jruby/bin/jruby -r ./siteconf20160524-809-1vt2zkd.rb extconf.rb
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS.

   (root) at /opt/logstash/vendor/jruby/lib/ruby/shared/mkmf.rb:8
  require at org/jruby/RubyKernel.java:1040
   (root) at /opt/logstash/vendor/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
   (root) at extconf.rb:3

extconf failed, uncaught signal 1

Gem files will remain installed in /opt/logstash/vendor/bundle/jruby/1.9/gems/google-protobuf-3.0.0.alpha.5.0.5.1 for inspection.
Results logged to /opt/logstash/vendor/bundle/jruby/1.9/extensions/universal-java-1.8/1.9/google-protobuf-3.0.0.alpha.5.0.5.1/gem_make.out

Metadata

Metadata

Assignees

Labels

api: pubsubIssues related to the Pub/Sub API.grpcstatus: acknowledgedstatus: blockedResolving the issue is dependent on other work.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions