castwide / readapt

A Ruby debugger for the Debug Adapter Protocol.
MIT License
42 stars 3 forks source link

Not able to install if ruby engine is jruby #7

Closed ankitsny closed 4 years ago

ankitsny commented 4 years ago

I am using jruby, tried to install readapt using gem install readapt but its failing.

Logs

Building native extensions.  This could take a while...
ERROR:  Error installing readapt:
        ERROR: Failed to build gem native extension.

    current directory: /Users/ankso/.rvm/gems/jruby-9.1.17.0/gems/readapt-1.0.0/ext/readapt
/Users/ankso/.rvm/rubies/jruby-9.1.17.0/bin/jruby -r ./siteconf20200429-58412-1qk4ftf.rb extconf.rb
creating Makefile

current directory: /Users/ankso/.rvm/gems/jruby-9.1.17.0/gems/readapt-1.0.0/ext/readapt
make "DESTDIR=" clean

current directory: /Users/ankso/.rvm/gems/jruby-9.1.17.0/gems/readapt-1.0.0/ext/readapt
make "DESTDIR="
make: *** No rule to make target `/Users/ankso/.rvm/rubies/jruby-9.1.17.0/lib/ruby/include/ruby/ruby.h', needed by `monitor.o'.  Stop.

make failed, exit code 2

Gem files will remain installed in /Users/ankso/.rvm/gems/jruby-9.1.17.0/gems/readapt-1.0.0 for inspection.
Results logged to /Users/ankso/.rvm/gems/jruby-9.1.17.0/extensions/universal-java-13/2.3.0/readapt-1.0.0/gem_make.out
castwide commented 4 years ago

Unfortunately, it's not possible to use Readapt in JRuby. Readapt uses a native C extension, and there currently isn't an equivalent extension for Java.