【发布时间】:2016-10-21 14:28:33
【问题描述】:
当我在 heroku 上部署我的 rails 应用程序时,“验证部署..”步骤不会停止。最终部署失败。 看起来像: .....
Counting objects: 63, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (50/50), done.
Writing objects: 100% (63/63), 16.07 KiB | 0 bytes/s, done.
Total 63 (delta 2), reused 55 (delta 2)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.2.4
remote: -----> Installing dependencies using bundler 1.9.7
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Fetching gem metadata from https://ruby.taobao.org/...........
remote: Fetching version metadata from https://ruby.taobao.org/..
remote: Installing i18n 0.7.0
.
.
.
.
remote: Installing rack-test 0.6.3
remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
remote: /tmp/build_79f9308360752d0592fbc2b468f9b84c/vendor/ruby-2.2.4/bin/ruby -r ./siteconf20160229-317-1hewtf6.rb extconf.rb
remote: checking for sqlite3.h... no
remote: sqlite3.h is missing. Try 'port install sqlite3 +universal',
remote: 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
remote: and check your shared library search path (the
remote: location where your sqlite3 shared library is located).
remote: *** extconf.rb failed ***
remote: Could not create Makefile due to some reason, probably lack of necessary
remote: libraries and/or headers. Check the mkmf.log file for more details. You may
remote: need configuration options.
remote: Provided configuration options:
remote: --with-opt-dir
remote: --without-opt-dir
remote: --with-opt-include
remote: --without-opt-include=${opt-dir}/include
remote: --with-opt-lib
remote: --without-opt-lib=${opt-dir}/lib
remote: --with-make-prog
remote: --without-make-prog
remote: --srcdir=.
remote: --curdir
remote: --ruby=/tmp/build_79f9308360752d0592fbc2b468f9b84c/vendor/ruby-2.2.4/bin/$(RUBY_BASE_NAME)
remote: --with-sqlite3-dir
remote: --without-sqlite3-dir
remote: --with-sqlite3-include
remote: --without-sqlite3-include=${sqlite3-dir}/include
remote: --with-sqlite3-lib
remote: --without-sqlite3-lib=${sqlite3-dir}/lib
remote: extconf failed, exit code 1
remote: Gem files will remain installed in /tmp/build_79f9308360752d0592fbc2b468f9b84c/vendor/bundle/ruby/2.2.0/gems/sqlite3-1.3.11 for inspection.
remote: Results logged to /tmp/build_79f9308360752d0592fbc2b468f9b84c/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/sqlite3-1.3.11/gem_make.out
remote: Installing uglifier 2.7.2
remote: Installing rdoc 4.2.2
remote: Installing sprockets 3.5.2
remote: Installing coffee-script 2.4.1
remote: Installing mail 2.6.3
remote: Installing activesupport 4.2.5.1
remote: Verifying deploy...............................................................................................................................................................................................................................................................................................................................................................................................................................................
error: RPC failed; result=18, HTTP code = 200
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Everything up-to-date
“验证部署”这一步花了我很长时间,最后失败了。 我该怎么办?
【问题讨论】:
-
能否在您的问题中发布您的 gem 文件内容。
标签: ruby-on-rails heroku