2016-06-21 61 views
0

我從昨天開始一直在尋找解決方案,我嘗試過的所有事情都會導致死路一條。安裝Git&Heroku後出現本地擴展錯誤

新的RoR和步行通過教程。一切正常,直到我開始設置GIT和Heroku。我不得不安裝jruby_windows和heroku-toolbelt,我相信這個東西搞砸了。

現在,當我運行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. 
+0

任何人有任何想法來幫助? –

+0

你能告訴我你運行'ruby -v'和'rails -v'時得到了什麼嗎? –

+0

'ruby 2.3.0p0(2015-12-25 revision 53290)[x64-mingw32]'和'rails 4.2.6' –

回答

1

這可能心不是一個正式的修復。我放棄了嘗試不同的事情,所以我最終通過使用railsinstaller重新安裝。再次設置後,我可以bundle install沒有錯誤。