目前 升级了 RVM
, Homebrew
, 还是安装不了,
切换到 ruby-1.9 也是报错。
前几天我的这个 project-template 还是正常的,今天准备从头再来一次,bundle install
就一直过不去,提示无法安装 pg -v '0.15.0'
RROR: Error installing pg:
ERROR: Failed to build gem native extension.
/Users/WuQi/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
checking for pg_config... no
No pg_config... trying anyway. If building fails, please try again with
--with-pg-config=/path/to/pg_config
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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.
Gemfile
source 'https://rubygems.org'
gem 'rails', '4.0.0'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'bootstrap-sass', '~> 2.3.2.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
group :doc do
gem 'sdoc', require: false
end
group :development do
gem 'quiet_assets'
gem 'pry'
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end