Unable to complete debugger installation

I am trying to create a new Rails project, and when I run rails new appname, it tells me

Could not find debugger-1.6.8 in any of the sources
Run `bundle install` to install missing gems.

Then, when I start the installation of the package, I get this error

Gem :: Ext :: BuildError: ERROR: Failed to build gem native extension.

    /Users/username/.rvm/rubies/ruby-2.1.4/bin/ruby -r ./siteconf20141213-76431-12dyum4.rb 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
  --without-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 / username / .rvm / rubies / ruby-2.1.4 / bin / ruby
/Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:1401:in `initialize ': No such file or directory @ rb_sysopen - ./214/ruby_debug.h (Errno :: ENOENT)
  from /Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:1401:in `open '
  from /Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:1401:in `copy_file '
  from /Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:483:in `copy_file '
  from /Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:400:in `block in cp '
  from /Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:1579:in `block in fu_each_src_dest '
  from /Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:1593:in `fu_each_src_dest0 '
  from /Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb:1577:in `fu_each_src_dest '
  from /Users/username/.rvm/rubies/ruby-2.1.4/lib/ruby/2.1.0/fileutils.rb{99:in `cp '
  from extconf.rb: 83: in `block in '
  from extconf.rb: 82: in `each '
  from extconf.rb: 82: in ``

extconf failed, exit code 1

Gem files will remain installed in /Users/username/.rvm/gems/ruby-2.1.4/gems/debugger-1.6.8 for inspection.
Results logged to /Users/username/.rvm/gems/ruby-2.1.4/extensions/x86_64-darwin-13/2.1.0-static/debugger-1.6.8/gem_make.out 

I know that the debugger does not work with Ruby 2.1.4, so how can I get the dispatcher to stop trying to install it? Do I need to use the rails application template?

+4
2

, - , ( Gemfile.lock), Gemfile , bundle install.

Rails 4.1.8 Gemfile debugger , .

, byebug, debugger Ruby 2.0+. Rails 4.2.0 .

-B --skip-bundle bundle install . Gemfile bundle install . .

+2

" byebug", Gemfile. "develpement and test" Gemfile,

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'

'byebug' ​​ "debugger" - , , Github.

0

All Articles