Require "socket"的问题,快死人了,求求大家

quick 2.2.6的版本

想用luasocket的,结果luasocket的例子运行不起来…

require "socket"结果错误见图
ger:0, sizeof(128) 96, 20
[string “C:/android/quick-cocos2d-x-2.2.5/bin/test01/scripts/app/sce
nes/MainScene.lua”]:1: module ‘socket’ not found:socket: bad header in precompil
ed chunk
no file ‘.\socket.lua’
no file ‘C:\android\quick-cocos2d-x-2.2.5\player\win\lua\socket.lua’
no file 'C:\android\quick-cocos2d-x-2.2.5\player\win\lua\socket\init.lua

no file ‘C:\android\quick-cocos2d-x-2.2.5\player\win\socket.lua’
no file ‘C:\android\quick-cocos2d-x-2.2.5\player\win\socket\init.lua’
no file ‘C:/android/quick-cocos2d-x-2.2.5/bin/test01/scripts/socket.lua’

    no file '.\socket.dll'
    no file 'C:\android\quick-cocos2d-x-2.2.5\player\win\socket.dll'
    no file 'C:\android\quick-cocos2d-x-2.2.5\player\win\loadall.dll'

请问怎么才能用luasocket呢,实在是头疼!!!

明显没有找到socket,请检查你的require

看看你用的lua 还是luajit

require “socket.core”

报错说找不到,:3:

挖的好坟。。。。

标题起得很有吸引力,你不去当新闻主编,可惜了。