Ruby on rails Rails:如何在Rails中使用最新版本的Postgres(您的PostgreSQL(80422)版本太旧。Active Record支持PostgreSQL>;=9.1。)

Ruby on rails Rails:如何在Rails中使用最新版本的Postgres(您的PostgreSQL(80422)版本太旧。Active Record支持PostgreSQL>;=9.1。),ruby-on-rails,postgresql,Ruby On Rails,Postgresql,运行rails db时出现以下错误:migrate rails aborted! Your version of PostgreSQL (80422) is too old. Active Record supports PostgreSQL >= 9.1. /home/alex/lighthouse/whiteshark-backend/bin/rails:9:in `require' /home/alex/lighthouse/whiteshark-backend/bin/rails:

运行rails db时出现以下错误:migrate

rails aborted!
Your version of PostgreSQL (80422) is too old. Active Record supports PostgreSQL >= 9.1.
/home/alex/lighthouse/whiteshark-backend/bin/rails:9:in `require'
/home/alex/lighthouse/whiteshark-backend/bin/rails:9:in `<top (required)>'
/home/alex/lighthouse/whiteshark-backend/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
rails中止!
您的PostgreSQL(80422)版本太旧。活动记录支持PostgreSQL>=9.1。
/home/alex/lighthouse/whiteshark后端/bin/rails:9:in'require'
/home/alex/lighthouse/whiteshark后端/bin/rails:9:in`'
/home/alex/lighthouse/whiteshark后端/bin/spring:15:in`'
箱子/轨道:3:在“装载”中
箱子/轨道:3:in`'
任务:TOP=>db:migrate
(通过使用--trace运行任务查看完整跟踪)
我已经安装了PostgreSQL 9.6.2,但Rails似乎没有意识到这一点。 我也尝试了这个解决方案,但没有成功:


请帮忙

用谷歌翻译在chrome上翻译这个我觉得你可以找到答案Hey Kick Buttowski,我得到了这个错误:$sudo yum-y localinstall。。。错误:Package:pgdg-redhat10-10-1.noarch(/pgdg-redhat10-10-1.noarch)Requires:/bin/sh错误:Package:pgdg-redhat10-10-1.noarch(/pgdg-redhat10-10-1.noarch)Requires:redhat release您可以尝试使用--skip break来解决您可以尝试运行的问题:rpm-Va--文件--nodigest。。。有什么想法吗?