make: *** No rule to make target '~/.rvm/rubies/jruby-9.2.0.0/lib/ruby/include/ruby/ruby.h', needed by 'amatch_ext.o'.

819 views Asked by At

I installed jruby-9.2.0.0 on my ubuntu machine and my rails application use rails 3.1.12 version, I am trying to run my app on jruby and when I tried to install all gems using bundle installcommand, I got an error for one gem 'amatch'

current directory: /home/user/.rvm/gems/jruby-9.2.0.0/gems/amatch-0.4.0/ext

/home/user/.rvm/rubies/jruby-9.2.0.0/bin/jruby -r ./siteconf20181018-3341-1y55yce.rb extconf.rb creating Makefile

current directory: /home/user/.rvm/gems/jruby-9.2.0.0/gems/amatch-0.4.0/ext
make "DESTDIR=" clean

current directory: /home/user/.rvm/gems/jruby-9.2.0.0/gems/amatch-0.4.0/ext
make "DESTDIR="
make: *** No rule to make target '/home/user/.rvm/rubies/jruby-9.2.0.0/lib/ruby/include/ruby/ruby.h', needed by 'amatch_ext.o'.  Stop.

make failed, exit code 2

Please help me fix this error. Thanks

1

There are 1 answers

3
Marcus Ilgner On

Looks like the amatch gem uses a native extension which are not supported on JRuby.

If you really want to use JRuby, the only solution will be to replace that gem with another one.