byebug - Ruby on Rails new app creation failing on Windows -
i'm new ruby on rails, , trying make app. ran rails new myapp, , ran problem when installing byebug.
gem::ext::builderror: error: failed build gem native extension. c:/ruby21/bin/ruby.exe extconf.rb creating makefile make "destdir=" clean 0 [main] rm 5012 open_stackdumpfile: dumping stack trace rm.exe.stackdump make: [clean-static] error 5 (ignored) 0 [main] rm 4148 open_stackdumpfile: dumping stack trace rm.exe.stackdump make: [clean] error 5 (ignored) make "destdir=" generating byebug-i386-mingw32.def compiling breakpoint.c cc1.exe: warnings being treated errors in file included c:/ruby21/include/ruby-2.1.0/ruby/defines.h:217:0, c:/ruby21/include/ruby-2.1.0/ruby/ruby.h:29, c:/ruby21/include/ruby-2.1.0/ruby.h:33, ./byebug.h:4, breakpoint.c:1: c:/ruby21/include/ruby-2.1.0/ruby/win32.h:320:44: error: 'struct timespec' declared inside parameter list c:/ruby21/include/ruby-2.1.0/ruby/win32.h:320:44: error: scope thisdefinition or declaration, not want c:/ruby21/include/ruby-2.1.0/ruby/win32.h:321:43: error: 'struct timespec' declared inside parameter list make: *** [breakpoint.o] error 1 make failed, exit code 2 gem files remain installed in c:/ruby21/lib/ruby/gems/2.1.0/gems/byebug-4.0.5 inspection. results logged c:/ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/byebug-4.0.5/gem_make.out error occurred while installing byebug (4.0.5), , bundler cannot continue. make sure `gem install byebug -v '4.0.5'` succeeds before bundling. so looks compiler treating warnings errors, , byebug has warning? , need configure compiler not treat warnings errors?
you should try uninstall/reinstall devkit windows marsatomic adviced.
mac worked me running
xcode-select --install
, specifying github: 'deivid-rodriguez/byebug' byebug in gemfile (not sure it's necessary though).
Comments
Post a Comment