[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Newbie: need help with lua socket install
- From: "mark morreny" <markmorreny@...>
- Date: Sun, 18 May 2008 11:15:21 +0800
Hi,
I am quite new to Lua am I am trying to migrate my PHP socket code to Lua.
The problem is that I can't get luasocket installed on my Debian machine:
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
In file included from luasocket.c:21:
/usr/local/include/lauxlib.h:15:17: error: lua.h: No such file or directory
In file included from luasocket.c:21:
/usr/local/include/lauxlib.h:37: error: expected specifier-qualifier-list before 'lua_CFunction'
/usr/local/include/lauxlib.h:42: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/include/lauxlib.h:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
/usr/local/include/lauxlib.h:46: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/local/include/lauxlib.h:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
/usr/local/include/lauxlib.h:48: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
When I do a fine, I can see lua.h in the lua 5.1.3 source directory
linux:/usr/src/lua-5.1.3# find / -name lua.h
/usr/src/lua-5.1.3/src/lua.h
What is wrong with my setup? How can I get luasocket installed properly?
Your help will be greatly appreciated.
Thanks,
Mark