Coder Social home page Coder Social logo

Comments (7)

dbussink avatar dbussink commented on August 19, 2024

The regular gem install command does not compile the native extension:

rvm use jruby-1.7.0
gem install do_postgres
Fetching: data_objects-0.10.10.gem (100%)
Fetching: do_jdbc-0.10.10-java.gem (100%)
Fetching: do_postgres-0.10.10-java.gem (100%)
Successfully installed data_objects-0.10.10
Successfully installed do_jdbc-0.10.10-java
Successfully installed do_postgres-0.10.10-java
3 gems installed

from do.

postmodern avatar postmodern commented on August 19, 2024

It seems like the Rakefile is broken under JRuby. The build and install tasks fail for me as well.

from do.

dbussink avatar dbussink commented on August 19, 2024

Yeah, using it under JRuby is not supported atm, since the build process works differently anyway. It's setup in such a way that you never need to build the gems yourself for JRuby, since we provide java versions of the gems.

from do.

beoran avatar beoran commented on August 19, 2024

Where can I find these java versions then? Sorry to be confused but I couldn't find them yet.

from do.

dbussink avatar dbussink commented on August 19, 2024

If you gem install under JRuby or use Bundler, it will pickup the java versions automatically.

from do.

beoran avatar beoran commented on August 19, 2024

Ah, but I have to download the gems because I'm behind some crazy restrictive firewall and a wonky connection. I guess they're somewhere on rubygems.org? OK, nevermind , I found them. It would still be nice if the build command worked also on Jruby, tough, so Ill leave this issue open for that, but feel free to close it if you think it's not essential.

from do.

dbussink avatar dbussink commented on August 19, 2024

Well, the build process is much more involved, I'd probably remove the JRuby specifics in the task. The build process needs to build regular extension gems and it cross compiles binaries for both Windows and Java. That whole process is automated so releasing is just a single command.

This uses rake-compiler's cross compilation capabilities which are tricky to combine with JRuby if you also provide a C extension last time I tried.

Closing this since I don't think this is essential, maybe I'll just remove it so it's clear that it doesn't work.

from do.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.