New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install grpc gem with JRuby #6705
Comments
As far as I know, we haven't done any work to get the gem working on jruby, and frankly, I'm surprised that it work at all. |
Well, I said it installed, not worked. 😉 We are also blocked by the fact that google-protobuf fails to install. |
The primary issue here is that the library is built on a C extension which uses a variety of Ruby C APIs. I don't think that is supposed to work with jruby. |
I believe that sufficiently modern jruby supports C extensions with sufficiently modern versions of OpenJDK |
Ahh, well that explains that! |
@raggi looking into this, but as far as I can see jruby support for the mri-c extensions was tried earlier on but deprecated in jruby 1.7.0 |
My understanding is that support for native C extensions are back in JRuby 9000, which is probably all anyone needs to worry about any more as the 1.7.x series is being end-of-lifed at the end of this year. |
Hi, Any update on this issue ? |
Is the C extensions issue still blocking progress on this? Has a ruby wrapper around the Java client jar been considered? |
@JasonLunn at least in the near-future I unfortunately it's not currently on the road map. With the large amount of c-extension code in the gem, wrapping the java client should be pretty involved - basically a reimplementation. |
@apolcyn: Assume for the purposes of argument that I was willing to try to create such a wrapper around |
I think this depends mostly on:
For |
note though that an addition to grpc-ruby like this might be difficult to bring in, just because of the overall complexity it might add. |
Or you can use extract the C extension + some light wrapper code into a I'm working on a project which uses Google Cloud APIs and I would like to use run on JRuby, too. It would be nice if the JRuby version would support the same grpc API without any code change. |
also @JasonLunn if a plan was created it would probably fit into grpc project-wide proposals. see https://github.com/grpc/proposal |
@apolcyn - what I'm looking for is the ability for Ruby dependency management tools like |
@apolcyn what is the status of this issue? |
I'll close this since I don't think there will be any action on this from grpc team. If there's progress on this, I suspect it would come as an open source contribution; (I believe @JasonLunn has made some progress here). |
The glcoud-ruby project has an issue opened by a user (googleapis/google-cloud-ruby#712) that is unable to install the latest version due to the dependencies on the grpc and google-protobuf gems not installing on jruby. I am not able to get the grpc gem to install on my mac using versions 9.1.1.0 or 9.0.0.0. I have the latest libgrpc installed, using both homebrew and built from source.
Here is the install on mac:
Strangly enough, it does install on linux! Here is that install:
The text was updated successfully, but these errors were encountered: