lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


在 2016/6/21 1:49, Christophe Jorssen 写道:

christophe@uranium:~$ lua
Lua 5.2.3  Copyright (C) 1994-2013 Lua.org, PUC-Rio
require("coolprop.capi")
error loading module 'coolprop.capi' from file
'/home/christophe/luarocks/lib/lua/5.2/coolprop/capi.so':
/home/christophe/luarocks/lib/lua/5.2/coolprop/capi.so: undefined
symbol: get_parameter_information_string
stack traceback:
[C]: in ?
[C]: in function 'require'
stdin:1: in main chunk
[C]: in ?


it seems the Lua binding C module `coolprop/capi.so` is loading a mismatched version
of the C++ CoolProp library thus a symbol failed to be resolved when loading.

do you have many versions of CoolProp installed on the system? and what's the search
order for the dynamic linker?

check the LD_LIBRARY_PATH environment variable.
also try `ldd path/to/capi.so`.

--
the nerdy Peng / 书呆彭 / Sent from Thunderbird