Linux shared library for Lua
#5
I used the default luarocks in my ubuntu distro, "apt-get install luarocks".
Then I proceeded to install luasocket through luarocks: "luarocks install luasocket".
This compiled the C support libraries for luasocket into a shared library "/usr/local/lib/lua/5.1/socket/core.so". I verified this by running "gdb lua", running the lua interpreter, issuing the "require 'socket'" command, Ctrl+C and back in gdb "info sharedlibrary".
The core.so library is linked so that it contains unresolved symbols from the lua runtime, then whatever executable loads that .so, the loader looks for those lua runtime functions in the executable and binds them to the .so.
Reply
Thanks given by:


Messages In This Thread
Linux shared library for Lua - by xoft - 12-02-2013, 06:50 AM
RE: Linux shared library for Lua - by SamJBarney - 12-02-2013, 09:40 AM
RE: Linux shared library for Lua - by xoft - 12-02-2013, 04:21 PM
RE: Linux shared library for Lua - by SamJBarney - 12-03-2013, 02:38 AM
RE: Linux shared library for Lua - by xoft - 12-03-2013, 02:51 AM
RE: Linux shared library for Lua - by SamJBarney - 12-03-2013, 03:35 AM
RE: Linux shared library for Lua - by xoft - 12-03-2013, 07:36 AM
RE: Linux shared library for Lua - by NiLSPACE - 12-03-2013, 07:40 AM
RE: Linux shared library for Lua - by SamJBarney - 12-03-2013, 07:47 AM



Users browsing this thread: 2 Guest(s)