Bug 49530 - Не находит luasql
Summary: Не находит luasql
Status: CLOSED NOTABUG
Alias: None
Product: Sisyphus
Classification: Development
Component: lua5.3-luarocks (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-27 17:59 MSK by Sergei Naumov
Modified: 2024-02-28 11:59 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Naumov 2024-02-27 17:59:58 MSK
Требуется организовать соединение с MariaDB. Пакет lua5.3-module-dbi-0.7.2-alt2.x86_64 стоит, но драйвер не ищется:

[serge@yarilo latex]$ lua5.3 
Lua 5.3.6  Copyright (C) 1994-2020 Lua.org, PUC-Rio
> require "luasql.mysql"
stdin:1: module 'luasql.mysql' not found:
        no field package.preload['luasql.mysql']
        no file '/usr/share/lua/5.3/luasql/mysql.lua'
        no file '/usr/share/lua/5.3/luasql/mysql/init.lua'
        no file '/usr/lib64/lua/5.3/luasql/mysql.lua'
        no file '/usr/lib64/lua/5.3/luasql/mysql/init.lua'
        no file './luasql/mysql.lua'
        no file './luasql/mysql/init.lua'
        no file '/usr/lib64/lua/5.3/luasql/mysql.so'
        no file '/usr/lib64/lua/5.3/loadall.so'
        no file './luasql/mysql.so'
        no file '/usr/lib64/lua/5.3/luasql.so'
        no file '/usr/lib64/lua/5.3/loadall.so'
        no file './luasql.so'
stack traceback:
        [C]: in function 'require'
        stdin:1: in main chunk
        [C]: in ?
Пытаюсь поставить luasql, но его нет

[root@yarilo ~]# luarocks-5.3 install luasql

Error: No results matching query were found for Lua 5.3.
To check if it is available for other Lua versions, use --check-lua-versions.

То же самое для 5.4.
Comment 1 Sergei Naumov 2024-02-27 18:05:23 MSK
Смотрю, что в /usr/lib64/lua/5.3 нет luasql, а есть dbd/. Однако:

[serge@yarilo latex]$ lua5.3
Lua 5.3.6  Copyright (C) 1994-2020 Lua.org, PUC-Rio
> require "dbd.mysql"
table: 0x55b5cae3a220
> env = assert (dbd.mysql())
stdin:1: attempt to index a nil value (global 'dbd')
stack traceback:
        stdin:1: in main chunk
        [C]: in ?
>
Comment 2 Sergei Naumov 2024-02-28 11:59:44 MSK
Разобрался. В ALT'е другой пакет... Не баг...