David Jones
David Jones

Reputation: 10229

Rails error: Couldn't find database client: sqlite3

I'm using Rails in a development environment. I'm trying to run simple INSERT commands via the command line, but I can't seem to connect to the SQLite database. Other database-related commands are working fine (e.g. rake db:migrate). I'm using the following command:

rails dbconsole

But I'm getting the following error:

Couldn't find database client: sqlite3. Check your $PATH and try again.

I'm still learning Rails and I'm hoping you rails Rails experts out there will be able to spot the issue.

Upvotes: 4

Views: 4984

Answers (1)

Donavan White
Donavan White

Reputation: 1126

Sqlite3 isn't installed on your computer, go to the sqlite site and install the command line utility according to whichever operating system your using.

Upvotes: 5

Related Questions