lua-users home
lua-l archive

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



> -----Original Message-----
> From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org] On
> Behalf Of Jose Torre-Bueno
> Sent: vrijdag 15 november 2013 4:56
> To: Lua mailing list
> Subject: Problem with Luasocket (or maybe with file paths?)
> 
> This is probably a very newbe question but I have had an attempt to
> install luasockets fail and it seems to involve the linker failing to find
> object files.
> I have luasocket unpacked to /usr/bin/luasocket-2.0.2.  Make compiles
> correctly when run in this directory but when it attempts to link I get a
> storm of messages about _LuaL and _Lua functions missing.  I have
> luaxlib.o in /usr/include/lua5.2.  (this is under OSX if that makes a
> difference).
> 
> In any case make seems to be unable to find the Lua library files.  FWIW
> the Lua interpreter works fine but this is the first time I have attempted
> to use Lua with a C program. I assume that either I have something
> installed in a non standard location that is baffling make or there is
> some environmental parameter I need to set so make can find the object
> files.
> 
> I have /usr/bin and /usr/local/bin on the path, do I need to add
> /usr/include to the path?
> 
> As a follow on question is there some customary arrangement of files that
> Lua accessory programs expect to find resources in by default? I know that
> by the appropriate use of environmental variables and package.path I can
> store files anyplace but it seems to me that there are advantages to
> putting things in the default locations other programs expect them.
> 
> Jose de la Torre-Bueno, Ph.D.
> Empowered Energy Solutions Inc.
> Intellectual Property & Technology Management
> T (619) 977-0553
> F (760) 295-7119
> jtorrebueno@cox.net
> 

I use the attached rockspec (by Steve Donovan) to build LuaSocket with LuaRocks. This rockspec uses the LR 'builtin' backend instead of the make file. I couldn't use the makefile because MinGW is not supported by it, and this rockspec should work on all platforms I guess.

hth
Thijs

Attachment: luasocket-2.0.2-6.rockspec
Description: luasocket-2.0.2-6.rockspec