|
mark morreny wrote:
Hi,
I am trying to install luasocket 2.0.2 on lua 5.1.3. <http://5.1.3.> I am getting error during the "make" process. The site has very little about installation so I really have no clue. Can someone offer a hint?
linux:/usr/src/luasocket-2.0.2# lua
Lua 5.1.3 Copyright (C) 1994-2008 Lua.org, PUC-Rio
linux:/usr/src/luasocket-2.0.2#
linux:/usr/src/luasocket-2.0.2# make
cd src; make all
make[1]: Entering directory `/usr/src/luasocket-2.0.2/src'
gcc -DLUASOCKET_DEBUG -pedantic -Wall -O2 -fpic -c -o luasocket.o luasocket.c
luasocket.c:20:17: error: lua.h: No such file or directory
Either by editing the makefile, or with an appropiate flag, you need to tell make where are your Lua headers.
Or you can use LuaRocks that makes installing Lua packages a breeze.
http://www.luarocks.org