sqlite3 command not found

I followed this guide to setup my Rails with SQLite and Litestack: SQLite & Rails in Production · The Ruby Dispatch

When I ssh onto my box I can’t execute the sqlite3 command and so I assume my app is using SQLite by virtue of the gem libs?

# find / -type f -executable -name sqlite*
/usr/local/bundle/ruby/3.3.0/gems/sqlite3-1.7.3-x86_64-linux/lib/sqlite3/3.0/sqlite3_native.so
/usr/local/bundle/ruby/3.3.0/gems/sqlite3-1.7.3-x86_64-linux/lib/sqlite3/3.3/sqlite3_native.so
/usr/local/bundle/ruby/3.3.0/gems/sqlite3-1.7.3-x86_64-linux/lib/sqlite3/3.1/sqlite3_native.so
/usr/local/bundle/ruby/3.3.0/gems/sqlite3-1.7.3-x86_64-linux/lib/sqlite3/3.2/sqlite3_native.so

Can I simply install the executable with apt-get? Or should I do it via my Dockerfile?

Should add to your dockerfile

1 Like

Added sqlite3 to a line that installs other packages and that worked:

    apt-get install --no-install-recommends -y curl libsqlite3-0 sqlite3 sudo && \

Thanks @matthewford!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.