我对ruby有意见.我试了很多,但都不管用.
当我想启动rails服务器时,会收到以下错误消息:
安装pg(0.18.1)时出错,Bundler无法继续.
这是我已经try 过的:
sudo install gem
bundle install
bundle install --path vendor/cache
gem install pg -v '0.18.1'
当我try gem install pg -v '0.18.1'
次时,我收到以下错误消息:
Could not find gem 'pg (>= 0) ruby' in any of the gem sources listed in your Gemfile or installed on this machine. Run
bundle install
to install missing gems.
但这也不管用.我收到以下错误消息:
安装pg(0.18.1)时出错,Bundler无法继续.
我还try 在一个新的ruby项目中启动服务器.
没什么帮助..
谢谢你的帮助!
以下是我在文件中的更改:
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :development do
gem 'sqlite3'
end