简体   繁体   English

捆绑安装,Ruby on Rails,rubyinstaller

[英]Bundle Install, Ruby on Rails, rubyinstaller

I'm completely new to Ruby on Rails, and I'm a few difficulties creating a new rails project. 我是Ruby on Rails的新手,我在创建一个新的rails项目时遇到了一些困难。 Each time the 'bundle install' command runs I get the following error: 每次'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.

Now I've tried everything from install the debugger version 1.6.8, deleting and then re-installing it, deleting Gemfile.LOCK and creating a new rails project but I still get the error. 现在我已经尝试了一切,从安装调试器版本1.6.8,删除然后重新安装它,删除Gemfile.LOCK并创建一个新的rails项目,但我仍然得到错误。 I am using the Ruby installer "Ruby 1.9.3-p551" from http://rubyinstaller.org/downloads/ and DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe from the same wesbite. 我正在使用来自http://rubyinstaller.org/downloads/的Ruby安装程序“Ruby 1.9.3-p551”和来自同一wesbite的DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe。 I tried installing byebug but that isn't compatible with my version of Ruby. 我尝试安装byebug,但这与我的Ruby版本不兼容。

Does anyone have any suggestions? 有没有人有什么建议?

Thank you very much in advance! 非常感谢你提前!

there is a known issue with rubygems > 2.4.0 rubygems> 2.4.0存在一个已知问题

try running the command after running this 运行此命令后尝试运行该命令

gem update --system 2.3.0 gem update --system 2.3.0

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM