我尝试部署我的应用程序的Heroku的捆绑过程中失败,但我收到以下错误:部署到Heroku的宝石
Installing mini_portile (0.5.2) Installing ntlm-http (0.1.1) Installing webrobots (0.1.1) Installing naturalsorter (0.2.2) Using pg (0.17.0) Using bundler (1.5.2) Using raindrops (0.12.0) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/ruby-2.0.0/bin/ruby
extconf.rb checking for ffi.h... no checking for ffi.h in /usr/local/include,/usr/include/ffi... no checking for rb_thread_blocking_region()... yes checking for rb_thread_call_with_gvl()... yes checking for rb_thread_call_without_gvl()... yes checking for ffi_prep_cif_var()... no creating extconf.h creating Makefile
make "DESTDIR=" Configuring libffi /tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3/ext/ffi_c/libffi/configure:
line 7774: conftest.c: No such file or directory /tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3/ext/ffi_c/libffi/configure: line 1698: conftest.i: No such file or directory sed: can't read conftest.c: No such file or directory /tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3/ext/ffi_c/libffi/configure: line 7774: conftest.c: No such file or directory /tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3/ext/ffi_c/libffi/configure: line 1698: conftest.i: No such file or directory sed: can't read conftest.c: No such file or directory configure: error: in
/tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3/ext/ffi_c/libffi-x86_64-linux': configure: error: C preprocessor "gcc -E" fails sanity check See
config.log' for more details make: * ["/tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3/ext/ffi_c/libffi-x86_64-linux"/.libs/libffi_convenience.a] Error 1Gem files will remain installed in /tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3
for inspection. Results logged to /tmp/build_4fb17050-b89d-47de-afc2-a6442ad2c755/vendor/bundle/ruby/2.0.0/gems/ffi-1.9.3/ext/ffi_c/gem_make.out Installing kgio (2.9.1) Installing rdiscount (2.1.7) Installing sass (3.3.0.rc.3) An error occurred while installing ffi (1.9.3), and Bundler cannot continue. Make sure that
gem install ffi -v '1.9.3'
succeeds before bundling. ! ! Failed to install gems via Bundler. !! Push rejected, failed to compile Ruby app
任何想法,我能做些什么?
您的本地机器是Windows机器吗? – Vidya
不,我正在使用Mac – rctneil
好人。推送* Gemfile *和* Gemfile.lock *? – Vidya