Closed cweiske closed 1 year ago
I wish it was easier to install luadbi-mysql on a recent Debian 11 system.
Did you try sudo apt install lua-dbi-mysql
?
Erm, that would have been too easy. No, I did not think of that at all :(
Sorry.
No worries! One thing to note about that package is that the version in Debian 11 is not compatible with Lua 5.4 (this is true of many Lua packages in Debian 11, unfortunately). The good news is that Debian 12 is around the corner, and it has Lua 5.4 compatibility.
For more information about Prosody Lua version support, see https://prosody.im/doc/release/0.12.0#lua-version-support
I wish it was easier to install
luadbi-mysql
on a recent Debian 11 system.Problems I see:
mysql.h
in/usr/include/mariadb/
libmariadb-dev-compat
,libmariadb-dev
is not enoughMy story
I installed prosody xmpp server freshly on a new server and copied the old configuration over. It would not start because DBI was not available:
So I tried to install it, but that failed:
So I installed the mariadb header files
libmariadb-dev
and tried again, but no avail - it wants a "include" subdirectory:So I went to
/usr/include/mariadb
and symlinked this directory into theinclude
subdirectory:This got me one step further, but:
Now I had to install
libmariadb-dev-compat
, and that was the thing that finally made it compile.