###前提・実現したいこと
質問失礼します。
ただいまrails tutorialの2章を進めているのですが、
toy_appを最後にデプロイしようとしたところ
以下のようなエラーが発生しました。
###発生している問題・エラーメッセージ
checking for sqlite3.h... no
remote: sqlite3.h is missing. Try 'brew install sqlite3',
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.
:
:
:
An error occurred while installing sqlite3 (1.3.13), and Bundler cannot
remote: continue.
remote: Make sure that gem install sqlite3 -v '1.3.13'
succeeds before bundling.
remote: !
remote: ! Failed to install gems via Bundler.
remote: ! Detected sqlite3 gem which is not supported on Heroku:
remote: ! https://devcenter.heroku.com/articles/sqlite3
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy...
###該当のソースコード
こちらにファイル状況など記載いたします。
「gem file」
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem 'rails', '> 5.1.1'> 3.7'
gem 'sqlite3'
gem 'puma', '
gem 'sass-rails', '> 5.0'> 4.2'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '
gem 'turbolinks', '> 5'> 2.5'
gem 'jbuilder', '
group :development, :test do
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
gem 'sqlite3'
end
group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :production do
gem 'pg', '0.18.4'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
「gemfile.lock」
GEM
remote: https://rubygems.org/
specs:
actioncable (5.1.1)
actionpack (= 5.1.1)
nio4r (> 2.0)> 0.6.1)
websocket-driver (
actionmailer (5.1.1)
actionpack (= 5.1.1)
actionview (= 5.1.1)
activejob (= 5.1.1)
mail (> 2.5, >= 2.5.4)> 2.0)
rails-dom-testing (
actionpack (5.1.1)
actionview (= 5.1.1)
activesupport (= 5.1.1)
rack (> 2.0)> 0.6.3)
rack-test (
rails-dom-testing (> 2.0)> 1.0, >= 1.0.2)
rails-html-sanitizer (
actionview (5.1.1)
activesupport (= 5.1.1)
builder (> 3.1)> 1.4)
erubi (
rails-dom-testing (> 2.0)> 1.0, >= 1.0.3)
rails-html-sanitizer (
activejob (5.1.1)
activesupport (= 5.1.1)
globalid (>= 0.3.6)
activemodel (5.1.1)
activesupport (= 5.1.1)
activerecord (5.1.1)
activemodel (= 5.1.1)
activesupport (= 5.1.1)
arel (> 8.0)> 1.0, >= 1.0.2)
activesupport (5.1.1)
concurrent-ruby (
i18n (> 0.7)> 5.1)
minitest (
tzinfo (> 1.1)> 2.0, >= 2.0.2)
addressable (2.5.1)
public_suffix (
arel (8.0.0)
bindex (0.5.0)
builder (3.2.3)
byebug (9.0.6)
capybara*(2.14.2)
addressable
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (> 2.0)> 1.0, >= 1.0.11)
childprocess (0.7.0)
ffi (
coffee-rails (4.2.2)
coffee-script (>= 2.2.0)
railties (>= 4.0.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
concurrent-ruby (1.0.5)
erubi (1.6.0)
execjs (2.7.0)
ffi (1.9.18)
globalid (0.4.0)
activesupport (>= 4.2.0)
i18n (0.8.4)
jbuilder (2.7.0)
activesupport (>= 4.2.0)
multi_json (>= 1.2)
listen (3.1.5)
rb-fsevent (> 0.9, >= 0.9.4)> 0.9, >= 0.9.7)
rb-inotify (
ruby_dep (> 1.2)> 3.2015)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.6)
mime-types (>= 1.16, < 4)
method_source (0.8.2)
mime-types (3.1)
mime-types-data (
mime-types-data (3.2016.0521)
mini_portile2 (2.2.0)
minitest (5.10.2)
multi_json (1.12.1)
nio4r (2.1.0)
nokogiri (1.8.0)
mini_portile2 (> 2.2.0)> 2.0)
public_suffix (2.0.5)
puma (3.9.1)
rack (2.0.3)
rack-test (0.6.3)
rack (>= 1.0)
rails (5.1.1)
actioncable (= 5.1.1)
actionmailer (= 5.1.1)
actionpack (= 5.1.1)
actionview (= 5.1.1)
activejob (= 5.1.1)
activemodel (= 5.1.1)
activerecord (= 5.1.1)
activesupport (= 5.1.1)
bundler (>= 1.3.0, < 2.0)
railties (= 5.1.1)
sprockets-rails (>= 2.0.0)
rails-dom-testing (2.0.3)
activesupport (>= 4.2.0)
nokogiri (>= 1.6)
rails-html-sanitizer (1.0.3)
loofah (
railties (5.1.1)
actionpack (= 5.1.1)
activesupport (= 5.1.1)
method_source
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (12.0.0)
rb-fsevent (0.9.8)
rb-inotify (0.9.8)
ffi (>= 0.5.0)
ruby_dep (1.5.0)
rubyzip (1.2.1)
sass (3.4.24)
sass-rails (5.0.6)
railties (>= 4.0.0, < 6)
sass (> 3.1)> 0.5)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
selenium-webdriver (3.4.0)
childprocess (
rubyzip (> 1.0)> 1.0)
websocket (
spring (2.0.2)
activesupport (>= 4.2)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
spring (>= 1.2, < 3.0)
sprockets (3.7.1)
concurrent-ruby (> 1.0)> 5)
rack (> 1, < 3)
sprockets-rails (3.2.0)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
thor (0.19.4)
thread_safe (0.3.6)
tilt (2.0.7)
turbolinks (5.0.1)
turbolinks-source (
turbolinks-source (5.0.3)
tzinfo (1.2.3)
thread_safe (> 0.1)> 1.3)
uglifier (3.2.0)
execjs (>= 0.3.0, < 3)
web-console (3.5.1)
actionview (>= 5.0)
activemodel (>= 5.0)
bindex (>= 0.4.0)
railties (>= 5.0)
websocket (1.2.4)
websocket-driver (0.6.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.2)
xpath (2.1.0)
nokogiri (
PLATFORMS
ruby
DEPENDENCIES
byebug
capybara (> 2.13)> 4.2)
coffee-rails (
jbuilder (> 2.5)> 3.7)
listen (>= 3.0.5, < 3.2)
puma (
rails (> 5.1.1)> 5.0)
sass-rails (
selenium-webdriver
spring
spring-watcher-listen (> 2.0.0)> 5)
sqlite3
turbolinks (
tzinfo-data
uglifier (>= 1.3.0)
web-console (>= 3.3.0)
BUNDLED WITH
1.15.1
###試したこと
「sqlite3」が原因というのはわかるのですが、どう対処したらよいでしょうか?
教本では「sqlite3」は本番環境には対応していない(heruko)ので本番環境にはインストールしないというように記載されていました。おそらく私の認識がどこかで間違っているのだと思います。
何卒、お力添えよろしくお願い致します。
###補足情報(言語/FW/ツール等のバージョンなど)
RUby : 2.3.0
rails : 5.1.1
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/06/12 07:16
2017/06/12 07:20
2017/06/12 07:24