在lua 中啓用luasock的問題

安裝 luasocketphp

# 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 installsocket

 

 

在lua  中啓用luasock的問題lua

編譯出現 .net

 

 

thread.c:(.text+0x60d): undefined reference to `luaopen_socket_core'server

serverconfig.o socket.so.2.0.2get

 

./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 /libthread

cp socket.so.2.0.2 /lib64object

cp /soft/luasocket-2.0.2/src/luasocket.h /usr/include/file

相關文章
相關標籤/搜索