Skip to content
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

How can I pass -Xcext.enabled=true #49

Open
alex-dow opened this issue May 1, 2013 · 3 comments
Open

How can I pass -Xcext.enabled=true #49

alex-dow opened this issue May 1, 2013 · 3 comments

Comments

@alex-dow
Copy link

alex-dow commented May 1, 2013

I need to add this parameter in order to "support" native C extensions. I understand that JRuby doesn't really play well with C extensions, but there are hard dependencies there that I can not work around even if the project doesn't even use them.

true does nothing it seems.
-Xcext.enabled=true does nothing as well.

-Xcext.enabled=true doesn't work either. It gives me the error: [INFO] jruby: invalid extended option cext.enabled=true

-Djruby.cext.enabled=true
doesn't work either.

I could keep going but I'm sure we all get the idea ;) It doesn't seem possible with:

            <groupId>de.saumya.mojo</groupId>
            <artifactId>gem-maven-plugin</artifactId>
            <version>1.0.0-beta</version>

To pass this parameter to jruby within maven.

@alex-dow
Copy link
Author

alex-dow commented May 1, 2013

Note that if I set JRUBY_OPTS='-Xcext.enabled=true' or if I create a file called .jrubyrc with cext.enabled=true inside, then this works as expected.

@mkristian
Copy link
Member

sorry for the late reply- kind of offline. what jruby version do you use ?
the default from the jruby-maven-plugins ? jruby kind of dropped this
extension support for jruby 1.7.x and for the plugin it needs to download
the full jruby distribution since jruby-complete does not have any native
support (which the plugin usually uses).

that the JRUBY_OPTS works surprises me - maybe there is a JRUBY_HOME set as
well ? what is the exact content of .jrubyrc (just try to understand) ?

which gem is the "offending" one you need to install ? so I can make sure
it works at least on my side.

@mlushpenko
Copy link

Next line solved problem for me:
export JRUBY_OPTS="-Xcext.enabled=true"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants