deivid-rodriguez / byebug

Debugging in Ruby 2
BSD 2-Clause "Simplified" License
3.34k stars 328 forks source link

Getting ERROR on JRuby? #702

Open shubhamjaincav opened 4 years ago

shubhamjaincav commented 4 years ago

Getting ERROR on JRuby environment

please help on it. How to install gem in JRuby.

ERROR :

Fetching: byebug-9.0.6.gem (100%) Building native extensions. This could take a while... ERROR: Error installing byebug: ERROR: Failed to build gem native extension.

vendor/jruby/bin/jruby -r ./siteconf20200625-23387-1wmouey.rb extconf.rb creating Makefile

current directory: vendor/bundle/jruby/2.5.0/gems/byebug-9.0.6/ext/byebug make "DESTDIR=" clean

current directory: vendor/bundle/jruby/2.5.0/gems/byebug-9.0.6/ext/byebug make "DESTDIR=" make: *** No rule to make target 'vendor/jruby/lib/ruby/include/ruby/ruby.h', needed by 'threads.o'. Stop.

make failed, exit code 2

Gem files will remain installed in vendor/bundle/jruby/2.5.0/gems/byebug-9.0.6 for inspection. Results logged to vendor/bundle/jruby/2.5.0/extensions/universal-java-11/2.5.0/byebug-9.0.6/gem_make.out

AlexWayfer commented 3 years ago

I have the same problem.

Work-around: disable byebug for JRuby:

  unless RUBY_PLATFORM == 'java'
    spec.add_development_dependency 'pry-byebug', '~> 3.9'
  end
Faq commented 6 months ago

https://github.com/deivid-rodriguez/byebug/issues/179#issuecomment-152727003