私はちょうどMichael Hartlのruby.railstutorial.orgの本を開始しました。私はマックブックOS X、ターミナル、およびサブライムテキストを使用しています。ヘロクへの展開をテストする時間が来るまで、すべてが計画通りに進んでいます。私はHerokuに接続して$ git push heroku
masterコマンドを実行できます。しかし、展開は失敗します。sqlite3 gemエラーのためHerokuのデプロイメントに失敗しました
Installing sqlite3 (1.3.5) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Try 'port install sqlite3 +universal'
or 'yum install sqlite-devel' and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
An error occurred while installing sqlite3 (1.3.5), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.5'` succeeds before bundling.
!
! Failed to install gems via Bundler.
!
! Detected sqlite3 gem which is not supported on Heroku.
! http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development
!
! Heroku push rejected, failed to compile Ruby/rails app
は私のGemfileである
source 'https://rubygems.org'
gem 'rails', '3.2.8'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'sqlite3', '1.3.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.5'
gem 'coffee-rails', '~> 3.2.2'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.2.3'
end
gem 'jquery-rails', '2.0.2'
group :production do
gem 'pg', '0.12.2'
end
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
私は、生産、開発のためではなく、指定sqlite3のしているので、私はHerokuのは、ちょうどすべて一緒にそれを無視するだろうと思ったが、それはしていないようです事件である。
また、私は $バンドルが生産
私は一部の人だけでPGをインストールしていることを使用することが提案されたことを知っているが、私は本当にチュートリアルに固執したいを--withoutインストールし使用していますバンドルを作成します可能な限り、私はベンチャーアウトし、別のアプローチを試してみる前に。
私は現時点では少し失われており、ここから進める方法がわかりません。あなたが提供できるどんな助力も、最も感謝しています。 Herokuのは、何らかの理由で、sqlite3の宝石をインストールすることはできません
うわー、ヘルプリンクは、私は、この問題を打ったとき... – Chowlett
は、リンクのアドバイスに従って、代わりのPostgreSQLを使用するよりも多くの助けにならないのです。 – sevenseacat
このセクションをチェックしてくださいhttps://devcenter.heroku.com/articles/building-a-rails-3-application-with-the-memcache-addon#create-your-application – fankt