Search code examples
ruby-on-railssqlite

Installed sqlite3 but still getting error couldn't find database client: sqlite3. Check your $PATH and try again.


I am new to rails. I have installed sqlite3, but still i'm getting the below error when i try to start dbconsole from the root of application folder.

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

When i check for sqlite3 using cmd "bundle show sqlite3", it shows the path as "/home/railsuser/projects/rails1/vendor/bundle/ruby/1.9.1/gems/sqlite3-1.3.8".

Please help me in fixing this issue. I am struggling since 3 days and no luck.

Thank you very much.


Solution

  • add it to your path? try export PATH=$PATH:bundle show sqlite3 see where the actual sqlite executable is under the sqlite3-1.3.8 directory, use find bundle show sqlite3 -name sqlite3 -print and add that to the PATH.