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

JRuby Support #29

Closed
cforce opened this Issue Oct 10, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@cforce
Copy link
Contributor

commented Oct 10, 2012

It does not run under jruby e.g. 1.6.7, neither on jruby 1.7.

Please add support

@cforce

This comment has been minimized.

Copy link
Contributor Author

commented Nov 29, 2012

Hi,

i try to install "gem install xapian-full -v '1.2.3'" on opensuse 11.4 but run into errors (Full LOG see gist https://gist.github.com/4167612) :

checking /home/sidfunktion/.rvm/rubies/jruby-1.7.0/bin/jruby version... jruby 1.7.0 (1.9.3p203) 2012-11-28 fffffff on Java HotSpot(TM) Client VM 1.6.0_34-b04 [linux-i386](too old)
configure: error: Only Ruby 1.8 or newer is supported (/home/sidfunktion/.rvm/rubies/jruby-1.7.0/bin/jruby is jruby 1.7.0 (1.9.3p203) 2012-11-28 fffffff on Java HotSpot(TM) Client VM 1.6.0_34-b04 [linux-i386])
rake aborted!

/home/sidfunktion/.rvm/gems/jruby-1.7.0/gems/xapian-full-1.2.3/Rakefile:6:in system!' /home/sidfunktion/.rvm/gems/jruby-1.7.0/gems/xapian-full-1.2.3/Rakefile:35:in(root)'
org/jruby/RubyDir.java:462:in chdir' /home/sidfunktion/.rvm/gems/jruby-1.7.0/gems/xapian-full-1.2.3/Rakefile:32:in(root)'
org/jruby/RubyProc.java:249:in call' org/jruby/RubyArray.java:1612:ineach'
org/jruby/RubyArray.java:1612:in `each'
Tasks: TOP => default
(See full trace by running task with --trace)

Gem files will remain installed in /home/sidfunktion/.rvm/gems/jruby-1.7.0/gems/xapian-full-1.2.3 for inspection.
Results logged to /home/sidfunktion/.rvm/gems/jruby-1.7.0/gems/xapian-full-1.2.3/./gem_make.out
An error occurred while installing xapian-full (1.2.3), and Bundler cannot continue.
Make sure that gem install xapian-full -v '1.2.3' succeeds before bundling.

Process finished with exit code 5

Can u explain what the problem is?
The error message doesn not make sense, because jruby 1.7 supports ruby 1.8 upwards and i am using default ruby 1.9 mode

Btw If i call
./configure --prefix=/home/sidfunktion/.rvm/gems/jruby-1.7.0/gems/xapian-full-1.2.3 --exec-prefix=/home/sidfunktion/.rvm/gems/jruby-1.7.0/gems/xapian-full-1.2.3 --with-ruby

in folder
~/.rvm/gems/jruby-1.7.0/gems/xapian-full-1.2.3/xapian-core-1.2.3>

i get no error, see gist https://gist.github.com/4167631

Configure bt says "configure: WARNING: unrecognized options: --with-ruby"

Maybe confugure is not configured for jruby?

What if i would compile with standard ruby? Is the native extension portable togehther with the gem isetlf in the war i will create with warbler? Do i have to gem install xapian agaon on the destination system or is all includced in the war i created on my developer machine. Is the native extension compiled with ruby runnable by jruby then?

@cforce

This comment has been minimized.

Copy link
Contributor Author

commented Nov 29, 2012

It does not, neither on jruby 1.7

@xelkano

This comment has been minimized.

Copy link
Owner

commented Dec 21, 2012

Sorry for late reply, I have little time to work on this project. I've never used jruby and I have no time now to review this compatibility.

@picman picman added the Bug label Jun 11, 2015

@picman picman self-assigned this Jun 11, 2015

@picman

This comment has been minimized.

Copy link
Collaborator

commented Jun 11, 2015

The error is related to the Xapian gem not this plugin.

@picman picman closed this Jun 11, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.