Rails- Rubyを1.9.3にアップグレードし、Railsを3.2にアップロードした後、Herokuにアップロードしない
-
29-10-2019 - |
質問
このアプリは1.9.2とRails 3.2を使用していましたが、今日はRubyバージョンを1.9.3(Rbenvを使用して)に変更しましたが、すべてがうまくいかなかった
私はこれを私のgemfileに持っていました
グループ:開発はGEM 'SQLite3'終了を行います
グループ:プロダクションは宝石の「PG」を終了します
私が走るたびに:
バンドルインストール - プロダクションなし
今は何も起こりません
Git Push Heroku Master
同じエラーが発生します:
Installing sqlite3 (1.3.5) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/usr/local/lib/ruby/1.9.1/rubygems/installer.rb:483:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/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:
明らかにSQLiteをインストールしようとしていますが、gemfileからSqlite gemを削除しても、何も起こりませんが、問題はHerokuにあるようですが、今では何もできません
私がやろうとしていたので誰かが私を助けることができることを願っています
Heroku DB:プル
そのため、Taps Gemを追加したかったので、このチュートリアルに従いました
http://railsapps.github.com/rails-heroku-tutorial.html
そして、私はHerokuのRubyのバージョンを変更しました、今では問題はRbenvだと思いますが、私にはわかりません
前もって感謝します
ハビエルQ
正しい解決策はありません
所属していません StackOverflow