Ubuntu – Accessing sqlite3 from Lua

Written by

in

I thought this would be trivial but ended up fighting with various solutions until I found one that worked without requiring additional configurations.

So first you might need to install the sqlite3 development libraries (which are needed to compile the Lua sqlite3 connector):

sudo apt-get install libsqlite3-dev

install luarocks if you don’t have it

sudo apt-get install luarocks

and finally, install lsqlite3:

sudo luarocks install lsqlite3

Web page is at this site and you can find some usage examples here

Comments

2 responses to “Ubuntu – Accessing sqlite3 from Lua”

  1. takpo li Avatar
    takpo li

    I follow thiis, and get 5.1 installed. How can I do the same for 5.2? Thanks.

    1. admin Avatar
      admin

      According to the LuaSQLite3 Documentation Lua 5.1 to 5.3 are supported. Can you explain what you mean by getting 5.1 installed?

Leave a Reply

Your email address will not be published. Required fields are marked *