熱門文章

顯示具有 gem install pg 標籤的文章。 顯示所有文章
顯示具有 gem install pg 標籤的文章。 顯示所有文章

2016年3月19日 星期六

[Rails]錯誤解決-gem 'pg' 安裝PostgreSQL

主機環境:OSX EL Capitan 版本10.11.3

在學習 Ruby on Rails 遇到的錯誤:

An error occurred while installing pg (0.18.4), and Bundler cannot continue.
Make sure that `gem install pg -v '0.18.4'` succeeds before bundling.


這是在Gemfile 中加入 gem 'pg' 後,在Rails console (命令提示字元)輸入 #bundle install 後出現的錯誤。