Error Installing Ruby - Debug 19
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of gem install ruby debug this site About Us Learn more about Stack Overflow the company Business Learn ruby error installing json more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question ruby error installing json failed to build gem native extension x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up
Error Installing Debugger
how do I install ruby-debug in ruby 1.9.3 / Rails 3.2.1 [duplicate] up vote 14 down vote favorite 9 Possible Duplicate: Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 still crashes with “Symbol not found: _ruby_threadptr_data_type” I'm done with printing to the console -- I want to move up to the 20th century and start using a debugger!! But how do I install ruby-debug? The gem debugger native compilation of ruby-debug.c fails when I try to install the ruby-debug19 gem. I've looked over other SO postings and haven't found the answer yet... I am using Ruby 1.9.3-p0 I am using Rails 3.2 (with Gemfile, of course) I am NOT using RVM -- instead, I have a fully sandboxed directory containing all executables, gems, sources, etc. I refer to it as $SANDBOX below... bundle install doesn't work If I add ruby-debug19 to my Gemfile and do bundle install, it fails during build with conflicting types for 'rb_iseq_compile_with_option': # file: Gemfile ... group :development do gem 'ruby-debug19' end ... % bundle install ... Installing ruby-debug-base19 (0.11.25) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /Users/r/Developer/Topaz/usr/bin/ruby extconf.rb ... ruby_debug.c:29: error: conflicting types for 'rb_iseq_compile_with_option' $SANDBOX/usr/include/ruby-1.9.1/ruby-1.9.3-p0/vm_core.h:505: error: previous declaration of 'rb_iseq_compile_with_option' was here ... make: *** [ruby_debug.o] Error 1 gem install ruby-debug from the command line doesn't work If I try building the gem from the command line, using the --with-ruby-include argument pointing at the include directory for the current ruby, I get the same error: % gem install ruby-debug19 -- --with-ruby-include=$SANDBOX/packages/ruby-1.9.3-p0 Building native extensions. T
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business gem install debugger error Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation
Pry-debugger Ruby 2
Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like
Ruby Byebug
you, helping each other. Join them; it only takes a minute: Sign up Can't install ruby-debug? up vote 3 down vote favorite Has anyone else encountered this? gem install ruby-debug Building native extensions. This could take a http://stackoverflow.com/questions/9122232/how-do-i-install-ruby-debug-in-ruby-1-9-3-rails-3-2-1 while... ERROR: Error installing ruby-debug: ERROR: Failed to build gem native extension. /Users/ohad/.rvm/rubies/ruby-1.9.3-p327/bin/ruby extconf.rb Can't handle 1.9.x yet *** extconf.rb failed *** I am using a gemset if that has anything to do with it. ruby ruby-debug share|improve this question edited Jan 24 '13 at 13:51 the Tin Man 109k22134204 asked Jan 24 '13 at 10:41 WebQube 1,49921841 I believe the gem name for ruby 1.9 is ruby-debug19. Or something like that. –MurifoX http://stackoverflow.com/questions/14499362/cant-install-ruby-debug Jan 24 '13 at 10:42 add a comment| 3 Answers 3 active oldest votes up vote 4 down vote accepted The debugger gem is the de facto standard for the current version of Ruby. share|improve this answer answered Jan 24 '13 at 10:45 Jimmy Cuadra 19.6k65173 thanks. that completely saved me! –WebQube Jan 24 '13 at 11:31 add a comment| up vote 1 down vote The only debugger that works for me so far is the debugger gem found at https://github.com/cldwalker/debugger Put the gem 'debugger' in Gemfile or install it just for development. group :development do gem 'debugger' end I have tried a couple of other options (which all failed) before landing on debugger gem. Specifically, ruby-debug and ruby-debug19 (https://github.com/denofevil/ruby-debug19). ruby-debug failed to install. While ruby-debug19 did install, I got an error on require 'ruby-debug' ; Debugger.start. Here is my environment: ruby 1.9.3p374 (2013-01-15 revision 38858) [i686-linux] Rails 3.2.11 Ubuntu 12.04.2 LTS 32bit share|improve this answer edited Mar 12 '13 at 18:57 answered Mar 12 '13 at 14:50 MichaelZ 1,271166 add a comment| up vote 0 down vote You need to use the ruby-debug19 version as the 'regular' version is incompatible with Ruby 1.9: gem install ruby-debug19 For more information check the gems project page. share|improve this answer answered Jan 24 '13 at 10:43 Veger 23.9k56496 ruby-debug19 isn't compatible w
Sign in Pricing Blog Support Search https://github.com/cldwalker/debugger/issues/125 GitHub This repository Watch 25 Star 890 Fork 125 cldwalker/debugger forked from mark-moseley/ruby-debug Code Issues 13 Pull requests 2 Projects https://makandracards.com/jan0sch/12015-rails-3-ruby-debug-gem-and-build-error-on-bundle-install-under-freebsd 0 Wiki Pulse Graphs New issue debugger can't be installed on ruby 2.X #125 Closed eddiefisher opened this Issue Apr error installing 21, 2014 · 34 comments Projects None yet Labels bug ruby2 Milestone No milestone Assignees No one assigned 24 participants and others eddiefisher commented Apr 21, 2014 ruby -v ruby 2.1.2p80 (2014-03-01 revision 45231) [x86_64-darwin13.0] gem install debugger ruby error installing -v '1.6.6' Building native extensions. This could take a while... ERROR: Error installing debugger: ERROR: Failed to build gem native extension. /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/bin/ruby extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/Users/eddiefisher/.rvm/rubies/ruby-2.1-head/bin/ruby /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:1573:in `stat': No such file or directory @ rb_file_s_stat - ./212/ruby_debug.h (Errno::ENOENT) from /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:1573:in `block in fu_each_src_dest' from /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:1587:in `fu_each_src_dest0' from /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:1571:in `fu_each_src_dest' from /Users/eddiefisher/.rvm/rubies/ruby-2.1-head/lib/ruby/2.1.0/fileutils.rb:399:in `cp' from extconf.rb:83:in `block in
and build error on bundle install under freebsd Since some time it seems to be somewhat impossible to install the ruby-debug gem into your rails app. The error message will most likely look similar to this one: Building native extensions. This could take a while... ERROR: Error installing ruby-debug-base19-0.11.26.gem: ERROR: Failed to build gem native extension. /usr/local/bin/ruby19 extconf.rb checking for rb_method_entry_t.called_id in method.h... no checking for rb_control_frame_t.method_id in method.h... no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. A workaround is described on stackoverflow. On my freebsd box I had to adapt the build command for the second gem just as follows: % sudo gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=/usr/ports/lang/ruby19/work/ruby-1.9.3-p194 If the source is missing just run make in the ruby19 port directory. Author of this card: jan0sch jan0sch.de Say thanks Your thanks were sent to ! Last edit: about 1 year ago by jan0sch Posted by jan0sch to jan0sch's deck Privacy policy Terms of service Imprint