简体   繁体   English

安装Git和Heroku后出现本机扩展错误

[英]Native Extension Error After Installing Git & Heroku

I've been searching for a solution since yesterday and everything I've tried leads to a dead end. 从昨天开始,我一直在寻找解决方案,而我尝试过的一切都会导致死胡同。

New to RoR and walking through tutorials. RoR的新手,并逐步学习教程。 Everything was working fine, until I started setting up GIT and Heroku. 一切运行良好,直到我开始设置GIT和Heroku。 I had to install jruby_windows and heroku-toolbelt, and I believe this botched things up. 我必须安装jruby_windows和heroku-toolbelt,我相信这会使事情搞砸了。

Now when I run bundle install I receive the following output errors 现在,当我运行bundle install ,会收到以下输出错误

\BookReview>bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Resolving dependencies........
Using rake 11.2.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using nokogiri 1.6.8
Using rack 1.6.4
Using mime-types-data 3.2016.0521
Using arel 6.0.3
Using execjs 2.7.0
Using bcrypt 3.1.11
Using bcrypt-ruby 3.0.1
Using debug_inspector 0.0.2
Using sass 3.4.22
Using bundler 1.12.5
Installing byebug 9.0.5 with native extensions
C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:39: warning: Tempfile#unlink or delete called on open file; ignoring

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

    C:/jruby-9.0.0.0/bin/jruby.exe -r ./siteconf20160621-9244-az7xx.rb extconf.rb
NotImplementedError: C extensions are not supported
    <top> at C:/jruby-9.0.0.0/lib/ruby/stdlib/mkmf.rb:1
  require at org/jruby/RubyKernel.java:940
   (root) at C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
    <top> at extconf.rb:1

extconf failed, exit code 1

Gem files will remain installed in C:/jruby-9.0.0.0/lib/ruby/gems/shared/gems/byebug-9.0.5 for inspection.
Results logged to C:/jruby-9.0.0.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.2.0/byebug-9.0.5/gem_make.out
Using coffee-script-source 1.10.0
Using thor 0.19.1
Using concurrent-ruby 1.0.2
Using orm_adapter 0.5.0
Using multi_json 1.12.1
Using mimemagic 0.3.0
Installing mysql2 0.4.4 with native extensions
C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:39: warning: Tempfile#unlink or delete called on open file; ignoring

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

    C:/jruby-9.0.0.0/bin/jruby.exe -r ./siteconf20160621-9244-13ylh37.rb extconf.rb
NotImplementedError: C extensions are not supported
    <top> at C:/jruby-9.0.0.0/lib/ruby/stdlib/mkmf.rb:1
  require at org/jruby/RubyKernel.java:940
   (root) at C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
    <top> at extconf.rb:2

extconf failed, exit code 1

Gem files will remain installed in C:/jruby-9.0.0.0/lib/ruby/gems/shared/gems/mysql2-0.4.4 for inspection.
Results logged to C:/jruby-9.0.0.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.2.0/mysql2-0.4.4/gem_make.out
Using raty_ratings 1.2.0
Using tilt 2.0.5
Using rdoc 4.2.2
Using tzinfo 1.2.2
Using loofah 2.0.3
Using rack-test 0.6.3
Using warden 1.2.6
Using mime-types 3.1
Using autoprefixer-rails 6.3.6.2
Using uglifier 3.0.0
Installing binding_of_caller 0.7.2 with native extensions
C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/ext/ext_conf_builder.rb:39: warning: Tempfile#unlink or delete called on open file; ignoring

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

    C:/jruby-9.0.0.0/bin/jruby.exe -r ./siteconf20160621-9244-wni27b.rb extconf.rb
NotImplementedError: C extensions are not supported
    <top> at C:/jruby-9.0.0.0/lib/ruby/stdlib/mkmf.rb:1
  require at org/jruby/RubyKernel.java:940
   (root) at C:/jruby-9.0.0.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1
    <top> at extconf.rb:19

extconf failed, exit code 1

Gem files will remain installed in C:/jruby-9.0.0.0/lib/ruby/gems/shared/gems/binding_of_caller-0.7.2 for inspection.
Results logged to C:/jruby-9.0.0.0/lib/ruby/gems/shared/extensions/universal-java-1.8/2.2.0/binding_of_caller-0.7.2/gem_make.out
An error occurred while installing byebug (9.0.5), and Bundler cannot continue.
Make sure that `gem install byebug -v '9.0.5'` succeeds before bundling.

This probably isnt an official fix. 这可能不是官方解决方案。 I gave up on trying different things, so I ended up reinstalling by using the railsinstaller. 我放弃尝试其他方法,因此最终使用railsinstaller重新安装。 After setting things up again I am able to bundle install with no errors. 再次进行设置后,我可以将bundle install在一起而不会出现任何错误。

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

相关问题 在heroku上安装therubyracer,无法构建gem本机扩展 - Installing therubyracer at heroku, failed to build gem native extension 安装heroku toolbelt后出现Ruby错误 - Ruby error after installing heroku toolbelt 错误:安装nokogiri时出错:错误:无法构建gem本机扩展 - ERROR: Error installing nokogiri: ERROR: Failed to build gem native extension 错误:安装mysql时出错:错误:无法构建gem本机扩展 - ERROR: Error installing mysql: ERROR: Failed to build gem native extension 错误:安装pg时出错:错误:无法构建gem原生扩展 - ERROR: Error installing pg: ERROR: Failed to build gem native extension 错误:安装 racc 时出错:错误:无法构建 gem 原生扩展 - ERROR: Error installing racc: ERROR: Failed to build gem native extension git push heroku master:安装sqlite3时出错 - git push heroku master: Error occurred while installing sqlite3 安装rails时出错错误:无法构建gem本机扩展 - Error installing rails ERROR: Failed to build gem native extension 安装 libv8 时出错:错误:无法构建 gem 本机扩展 - Error installing libv8: ERROR: Failed to build gem native extension Rails:安装 rmagick 时出错 - 错误:无法构建 gem 本机扩展 - Rails: Error installing rmagick - ERROR: Failed to build gem native extension
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM