捆绑安装,Ruby on Rails,rubyinstaller

时间:2015-02-26 20:00:57

标签: ruby-on-rails ruby install bundle

我是Ruby on Rails的新手,我在创建一个新的rails项目时遇到了一些困难。每次'bundle install'命令运行时,我都会收到以下错误:

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

    C:/Ruby193/bin/ruby.exe -r ./siteconf20150226-7776-brvf10.rb 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
checking for rb_method_entry_t.called_id in method.h... no
checking for rb_control_frame_t.method_id in method.h... no
checking for rb_method_entry_t.called_id in method.h... yes
checking for vm_core.h... yes
checking for iseq.h... yes
checking for insns.inc... yes
checking for insns_info.inc... yes
checking for eval_intern.h... yes
checking for struct iseq_line_info_entry in vm_core.h,iseq.h... no
checking for struct iseq_insn_info_entry in vm_core.h,iseq.h... yes
checking for if rb_iseq_compile_with_option was added an argument filepath..
s
creating Makefile

make  clean
Makefile:165: *** target pattern contains no `%'.  Stop.

make
Makefile:165: *** target pattern contains no `%'.  Stop.

make failed, exit code 2

Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/debug
1.6.8 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/extensions/x86-mingw32/1.9.
bugger-1.6.8/gem_make.out
An error occurred while installing debugger (1.6.8), and Bundler cannot
continue.
Make sure that `gem install debugger -v '1.6.8'` succeeds before bundling.

现在我已经尝试了一切,从安装调试器版本1.6.8,删除然后重新安装它,删除Gemfile.LOCK并创建一个新的rails项目,但我仍然得到错误。我使用来自http://rubyinstaller.org/downloads/的Ruby安装程序“Ruby 1.9.3-p551”和来自同一wesbite的DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe。我尝试安装byebug,但这与我的Ruby版本不兼容。

有人有任何建议吗?

非常感谢你!

1 个答案:

答案 0 :(得分:0)

ruby​​gems有一个已知问题> 2.4.0

运行此

后尝试运行该命令
  

gem update --system 2.3.0