0

私は1.9.2とrails3.2を使用してこのアプリを持っていましたが、今日はルビーのバージョンを1.9.3に変更しました(rbenvを使用)。

私はこれを私のgemfileに持っていました

group:development do gem'sqlite3' end

group:production do gem'pg' end

私が走るたびに:

バンドルインストール-本番なし

今は何も起こらないし、

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:pull

そのため、タップジェムを追加したかったので、このチュートリアルに従いました

http://railsapps.github.com/rails-heroku-tutorial.html

そして、herokuでrubyのバージョンを変更しました。問題は、rbenvだと思いますが、よくわかりません。

前もって感謝します

ハビエルQ

4

1 に答える 1

0

実際、すべてのデータベースを取得するには、次のことを行うだけで済みました。

gem install taps

sqlite3が必要なため、Gemfileに入れないでください

于 2012-03-23T17:05:53.510 に答える