Re: LuaBitOp: Cant require "bit=>./bit.so: undefined symbol: luaopen_bit
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LuaBitOp: Cant require "bit=>./bit.so: undefined symbol: luaopen_bit
- From: Bezobiuk Volodymyr <dedoogun@...>
- Date: 2012年11月30日 10:32:38 +0200
Hi,
at first, check if the environment are read by the interpreter, by adding this debug output before 'require "bit"':
print("LUA_PATH =", os.getenv"LUA_PATH")
print("LUA_CPATH =", os.getenv"LUA_CPATH")
is it does print nils or either print some values other than you expected investigate why environment are broken
also, check package.path variable - it should be the same as your LUA_PATH env var
Sincerely,
Volodymyr
On Fri, Nov 30, 2012 at 5:53 AM,
<meino.cramer@gmx.de> wrote:
Hi,
I am trying to get LuaBitOp to work.
On a GENTOO Linux system (AMD64), which is updated and maintained on a
daily base, I did a
make
and
make install
, which works fine and installs bit.so into
/usr/local/lib64/lua/5.1/bit.so
.
In the enviroment this is defined:
LUA_PATH=/usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;/usr/lib64/lua/luarocks/share/lua/5.1/?.lua;/usr/lib64/lua/luarocks/share/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua
LUA_CPATH=/usr/lib64/lua/luarocks/lib/lua/5.1//?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so
s
A script containing 'require "bit"' leads to this:
lua: error loading module 'bit' from file './bit.so':
./bit.so: undefined symbol: luaopen_bit
stack traceback:
[C]: ?
[C]: in function 'require'
bittest.lua:3: in main chunk
[C]: ?
make: *** [test] Error 1
What did I wrong? How can I fix this?
Thank you very much in advance for any help!
Best regards,
mcc