- Notifications
You must be signed in to change notification settings - Fork567
Closed
Description
Hi
Trying to upgrade my Logstash inputhttps://github.com/Wondermall/logstash-input-google-cloud-pubsub
Butgcloud-ruby's dependency ongoogle-protobuf is causing it to trigger a native extensions build which is not supported by JRuby, makinggcloud-ruby unusable for JRuby based environments which is a shame because it could be tremendously useful for Logstash.
I've triedJRUBY_OPTS="--2.0 -Xcext.enabled=true" but no dice, even thoughgoogle-protobuf does check theRUBY_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.rbNotImplementedError: 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:3extconf failed, uncaught signal 1Gem 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