Skip to content

Cannot find libsqlite3.so on arm64Β #185

@christianknauer

Description

@christianknauer

sqlite.lua/lua/sqlite/defs.lua has x86_64 hardcoded as the machine architecture (in the fn clib l.35 ff). With Ubuntu 24 on an arm64 based machine this sets the search path to /usr/lib/x86_64-linux-gnu/... which of course does not work. This easy fix seems to work (l.35ff) for me:

local arch_name = io.popen("uname -m", "r"):read "*l"
local linux_paths = {
"/usr/lib/" .. arch_name .. "-linux-gnu/libsqlite3.so",
"/usr/lib/" .. arch_name .. "-linux-gnu/libsqlite3.so.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions