[英]Rails - Not uploading to heroku after upgrading ruby to 1.9.3 and rails to 3.2
我有一個使用1.9.2和Rails 3.2的應用程序,今天我將ruby版本更改為1.9.3(使用rbenv),然后一切都出錯了。
我在我的gemfile上有這個
group:development做gem'sqlite3'結束
組:生產寶石'pg'結束
每次我跑:
捆綁安裝-無生產
現在什么時候都沒有發生
git push heroku主
我犯了同樣的錯誤:
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
實際上,為了獲得所有數據庫,我只需要做:
gem install taps
而不是將其放入Gemfile中,因為它需要sqlite3
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.