安装 luasocket
# wget http://luaforge.net/frs/download.php/2664/luasocket-2.0.2.tar.gz
# tar zxvf luasocket-2.0.2.tar.gz
# cd luasocket-2.0.2
# make
# make install
在lua 中启用luasock的问题
编译出现
thread.c:(.text+0x60d): undefined reference to `luaopen_socket_core'
serverconfig.o socket.so.2.0.2
./server: error while loading shared libraries: socket.so.2.0.2: cannot open shared object file: No such file or directory
cp socket.so.2.0.2 /lib
cp socket.so.2.0.2 /lib64
cp /soft/luasocket-2.0.2/src/luasocket.h /usr/include/