You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I compiled lgi on Ubuntu 14.04 32 bits and with lua 5.2.3 without error, but when I try to run an example, I get this:
lua: error loading module 'lgi.corelgilua51' from file '/home/user/rocks/share/lua/5.2/lgi.lua':
/home/user/rocks/share/lua/5.2/lgi.lua: invalid ELF header
stack traceback:
[C]: in ?
[C]: in function 'require'
/home/user/rocks/share/lua/5.2/lgi/core.lua:14: in main chunk
[C]: in function 'require'
/home/user/rocks/share/lua/5.2/lgi/init.lua:18: in main chunk
[C]: in function 'require'
/home/user/rocks/share/lua/5.2/lgi.lua:19: in main chunk
[C]: in function 'require'
cairo.lua:12: in main chunk
[C]: in ?
I thought it was somehow compiled as 64-bits but it's not:
$ file corelgilua51.so
corelgilua51.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=41fb50617b1c73293a4151f69f7c4bca501feb75, not stripped
Here is the output of the luarocks command in case it helps:
it looks as if Lua is trying to load lgi.lua as ELF binary *which must fail, since it is actually Lua source), but I'm completely clueless why is this happening.
I also noticed the line:
cp: avertissement : le fichier source «version.lua» est mentionné plusieurs fois
Could it be that you are overwriting lgi install tree where some remnants of previous installs are? Would installing into clear tree help?
Thank's, you 're right, I think I used a "package.path" instead of "package.cpath" to link the library in the sample file, sorry about that.
About the cp warning, "version.lua" is indeed mentioned twice in the command (one line up). I think it is captured in both $(CORESOURCES) and $(VERSION_FILE) in ./lgi/lgi/Makefile:
cp $(CORESOURCES) $(VERSION_FILE) $(DESTDIR)$(LUA_SHAREDIR)/lgi
Hi,
I compiled lgi on Ubuntu 14.04 32 bits and with lua 5.2.3 without error, but when I try to run an example, I get this:
I thought it was somehow compiled as 64-bits but it's not:
Here is the output of the luarocks command in case it helps:
Thank you.
The text was updated successfully, but these errors were encountered: