lunarmodules / luasql

LuaSQL is a simple interface from Lua to a DBMS.
http://lunarmodules.github.io/luasql
545 stars 191 forks source link

libmysqlclient.so.18: cannot open shared object file: No such file or directory #76

Closed aldus2 closed 7 years ago

aldus2 commented 7 years ago

I updated some packages and since then, when using luasql, I have the execution error "libmysqlclient.so.18: cannot open shared object file: No such file or directory". Looking for "libmysqlclient.so.18" on my disk, I only found "libmysqlclient.so.20".

This could be the reason of the error ?

tomasguisasola commented 7 years ago

Hi aldus2

LuaSQL drivers always depend on a binary library provided by the database. If you remove that library, the driver won't work anymore.
This seems to be your problem.

You can install the previous version of the database client library or recompile LuaSQL with the new one. If you are using LuaRocks, you could remove the LuaSQL driver already installed and install it again. This operation should try to recompile the driver (which is a .so file). Try it and let me know if it solves your problem.

Regards, Tomás

On 2017-08-13 10:51, aldus2 wrote:

I updated some packages and since then, when using luasql, I have the execution error "libmysqlclient.so.18: cannot open shared object file: No such file or directory". Looking for "libmysqlclient.so.18" on my disk, I only found "libmysqlclient.so.20".

This could be the reason of the error ?

-- You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

*

Links:

[1] https://github.com/keplerproject/luasql/issues/76 [2] https://github.com/notifications/unsubscribe-auth/AAIA7YWxwXpr2Al37ZIyodNi-6r7Dnqtks5sXv9PgaJpZM4O1sXO

aldus2 commented 7 years ago

Hi Tomás,

I (re)installed mysql client stuff. I entered sudo luarocks install luasql-mysql MYSQL_INCDIR=/usr/include/mysql I got an error : `Installing https://rocks.moonscript.org/luasql-mysql-2.3.5-1.rockspec... Using https://rocks.moonscript.org/luasql-mysql-2.3.5-1.rockspec... switching to 'build' mode sh: 1: git: not found

Error: LuaRocks 2.2.0 bug (please report at luarocks-developers@lists.sourceforge.net). /usr/share/lua/5.1/luarocks/fetch/git.lua:19: attempt to index local 'version_string' (a nil value) stack traceback: /usr/share/lua/5.1/luarocks/fetch/git.lua:19: in function 'git_can_clone_by_tag' /usr/share/lua/5.1/luarocks/fetch/git.lua:63: in function </usr/share/lua/5.1/luarocks/fetch/git.lua:33> (tail call): ? /usr/share/lua/5.1/luarocks/build.lua:197: in function </usr/share/lua/5.1/luarocks/build.lua:162> (tail call): ? /usr/share/lua/5.1/luarocks/build.lua:398: in function </usr/share/lua/5.1/luarocks/build.lua:386> (tail call): ? (tail call): ? (tail call): ? C: in function 'xpcall' /usr/share/lua/5.1/luarocks/command_line.lua:208: in function 'run_command' /usr/bin/luarocks:33: in main chunk

` As indicated, I filed the bug to luarocks-developers@lists.sourceforge.net with no answer yet.

To be continued.

aldus2 commented 7 years ago

Hi !

I checked to install Mysql client (and even more libs that could be related, including Mysql-dev, including MariaDB client). To check, I looked for libmysql on my hard drive : I checked that I have a fresh libmysqlclient.so.20.3.6 in /usr/lib/x86_64-linux-gnu, and libmysqlclient.so and libmysqlclient.so.20 (in that same folder) which are links to the former file, but no trace of libmysqlclient.so.18. Is it possible to have libmysqlclient.so.20 without having libmysqlclient.so.18 ?

Regards, Al

tomasguisasola commented 7 years ago

Hi Al

Yes it seems reasonable to have a newer version and not have an older one. But did you succeded in compiling the driver for this new version?

Regards, Tomás

On 2017-08-19 14:38, aldus2 wrote:

Hi !

I checked to install Mysql client (and even more libs that could be related, including Mysql-dev, including MariaDB client). To check, I looked for libmysql on my hard drive : I checked that I have a fresh libmysqlclient.so.20.3.6 in /usr/lib/x86_64-linux-gnu, and libmysqlclient.so and libmysqlclient.so.20 (in that same folder) which are links to the former file, but no trace of libmysqlclient.so.18. Is it possible to have libmysqlclient.so.20 without having libmysqlclient.so.18 ?

Regards, Al

-- You are receiving this because you commented. Reply to this email directly, view it on GitHub [1], or mute the thread [2].

*

Links:

[1] https://github.com/keplerproject/luasql/issues/76#issuecomment-323537214 [2] https://github.com/notifications/unsubscribe-auth/AAIA7R-8NlnwOFm1qwelDJdVYyk2PolSks5sZx2lgaJpZM4O1sXO

aldus2 commented 7 years ago

Hi Tomás,

Not yet because I am blocked by the luarocks bug and didn't succeed in passing the bug to the luarocks-developers@lists.sourceforge.net. I am working on it.

Al.