我正尝试在EC2示例中运行rails 6,但遇到以下错误:Your version of SQLite (3.7.17) is too old. Active Record supports SQLite >= 3.8.
如果这很重要:
-我的gem文件中有以下内容:gem 'sqlite3', '~> 1.4
-我使用以下命令:rvmsudo rails server -p 80 -b 0.0.0.0
-当我在本地运行rails s
时,没有遇到该问题。
这是与here相同的问题,但选择的答案特定于使用AWS Cloud9。
编辑:
以下是运行sudo yum install build-essential libsqlite3-dev sqlite3 software-properties-common
后的结果:
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
No package build-essential available.
No package libsqlite3-dev available.
No package sqlite3 available.
No package software-properties-common available.
Error: Nothing to do
以下是分别运行sudo yum install libsqlite3-dev
和sudo yum install sqlite3
后的结果:
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
No package libsqlite3-dev available.
Error: Nothing to do
Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
No package sqlite3 available.
Error: Nothing to do
编辑2:
运行rails db:migrate
时,我看到以下内容:
warning Skipping preferred cache folder "/home/ec2-user/.cache/yarn" because it is not writable.
warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-1000".
** Execute db:load_config
** Execute db:migrate
rails aborted!
Your version of SQLite (3.7.17) is too old. Active Record supports SQLite >= 3.8
4条答案
按热度按时间ia2d9nvy1#
Centos7
升级说明:vtwuwzda2#
这对我来说非常有效:
ppcbkaq53#
如果在MartenCatcher回答之后,您仍然收到相同的错误,您很可能需要(针对CentOS7)
tsm1rwdh4#
如果您对EC2示例具有管理员访问权限,请运行以下命令