V
V
Vadim Ushakov2021-09-22 04:08:48
linux
Vadim Ushakov, 2021-09-22 04:08:48

When compiling, the library is found, when starting the object, the library is not found, what could be the reason?

When compiling, the library is found, when starting the object, the library is not found, what could be the reason? Probably, you need to register the path to the directory with the libraries statically, but it is written like this -L../servers/garrysmod/bin

require "machinarium"
  Couldn't load module library!
   1: (message = "Couldn't load module library!") [addons/gcompute/lua/gcompute/execution/local/gluaexecutioninstance.lua: 178]
   2: ("machinarium", userdata: 0xb139a388, "lua_shared.so: cannot open shared object file: No such file or directory", "Couldn't load module library!") [[C]: -1]
   3: xpcall (function (message)) [[C]: -1]

Answer the question

In order to leave comments, you need to log in

[[+comments_count]] answer(s)
J
jcmvbkbc, 2021-09-22
@Nightmare1

When compiling, the library is found, when starting the object, the library is not found, what could be the reason?

The fact that dynamically loaded libraries are searched for by standard paths and by paths from LD_LIBRARY_PATH, and how everything was linked - does not matter?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question