Reputation: 7505
We recently upgraded to Rails 6 and am seeing the following SQLite error when trying to migrate the database or run tests
rails aborted!
Your version of SQLite (3.7.17) is too old. Active Record supports SQLite >= 3.8.
I tried doing a yum update
to update the SQLite drivers etc, but the version of SQLite remained the same at 3.7.17
.
How can I upgrade the SQLite packages to make this work with Rails 6?
Upvotes: 4
Views: 1155
Reputation: 7505
Unfortunately, the latest version of SQLite packages available in yum is 3.7.17
. You will need to download the latest SQLite RPM's manually and yum install
them yourself.
wget https://kojipkgs.fedoraproject.org//packages/sqlite/3.8.11/1.fc21/x86_64/sqlite-devel-3.8.11-1.fc21.x86_64.rpm
wget https://kojipkgs.fedoraproject.org//packages/sqlite/3.8.11/1.fc21/x86_64/sqlite-3.8.11-1.fc21.x86_64.rpm
yum install sqlite-3.8.11-1.fc21.x86_64.rpm sqlite-devel-3.8.11-1.fc21.x86_64.rpm
Then you can verify the installed sqlite version with:
sqlite3 --version
Upvotes: 5
Reputation: 1
yum install sqlite-3.9.0-1.fc21.x86_64.rpm sqlite-devel-3.9.0-1.fc21.x86_64.rpm
Upvotes: -1