0
我一直在遇到問題,在我的Rails寶石pg。當我嘗試..Rails捆綁安裝與postgres寶石問題
$ bundle install
..my終端的回報..
An error occurred while installing pg (0.21.0), and Bundler cannot
continue.
Make sure that `gem install pg -v '0.21.0'` succeeds before bundling.
我的Gemfile包括這樣的:
group :production, :default do
gem 'pg'
end
我做的運動是部署我的Rails應用程序在Heroku中,它的工作原理。這個想法是我不在本地安裝postgres。
這是我的GitHub庫,如果它可以幫助:https://github.com/cyqurayte/Rails1
在什麼平臺您?是否有更具體的錯誤信息? 也許它是這樣的:https://stackoverflow.com/questions/3116015/how-to-install-postgresqls-pg-gem-on-ubuntu – Robin
Heroku。 我有sqlite3開發環境和postgres生產環境上的heroku –