sách gpt4 ai đã đi

lua - 使用 luarocks 安装 luasocket

In lại 作者:行者123 更新时间:2023-12-04 14:59:57 hai mươi bốn 4
mua khóa gpt4 Nike

我按照以下说明在我的 windows xp(32 位)系统中安装了 luarocks

http://luarocks.org/en/Installation_instructions_for_Windows

从 luarocks 安装 luasocket 我使用了命令 “luarocks 安装 luasocket” 在命令提示符中。但最终出现了一个错误:

**Warning: Failed searching manifest: Failed loading manifest: Failed fetching man
ifest for http://luarocks.org/repositories/rocks - Error fetching file: Failed d
ownloading http://luarocks.org/repositories/rocks/manifest
Error: No results matching query were found.**

所以它无法找到 luasocket.rock 文件。我下载了文件 luasocket-2.0.2-5.src.rock 来自链接:

http://luarocks.org/repositories/rocks/

现在我尝试使用命令 安装这个 .rock 文件luarocks 安装 luarocks 安装“C
:\Documents and Settings\Ankur_Gupta37\Desktop\LuaRocks\2.1\lua\luarocks"


(我把 luasocket-2.0.2-5.src.rock 放在位置“C
:\Documents and Settings\Ankur_Gupta37\Desktop\LuaRocks\2.1\lua\luarocks\luasocket-2.0.2-5.src.rock")

但再次以错误告终:
**set INCLUDE=C:/Documents and Settings/Ankur_Gupta37/Desktop/LuaRocks/2.1/include
;%INCLUDE% &set LIB=C:/Documents and Settings/Ankur_Gupta37/Desktop/LuaRocks/2.1
;%LIB% &msbuild /p:"VCBuildAdditionalOptions= /useenv" luasocket.sln &mkdir mime
& mkdir socket &cp src/mime.dll mime/core.dll &cp src/socket.dll socket/core.dl
l
'msbuild' is not recognized as an internal or external command,
operable program or batch file.
cp: cannot stat `src/mime.dll': No such file or directory
cp: cannot stat `src/socket.dll': No such file or directory
Error: Build error: Failed building.**

任何机构告诉我问题及其解决方案..

1 Câu trả lời

您可以尝试从 git 安装最新版本。
当前状态是 3.0 rc1。
此版本兼容 Lua 5.1/5.2
Ví dụ

luarocks install https://raw.github.com/diegonehab/luasocket/master/luasocket-scm-0.rockspec

hoặc
luarocks install luasocket --only-server=http://luarocks.org/repositories/rocks-scm

此rockspec 适用于gcc (MinGW) 和MSVC。
如果你使用 MSVC,你应该运行 luarocks 表单 Visual Studio Command Prompt如果你使用 MinGW 那么你应该添加路径到 mingw32-gcc在 %PATH% 环境变量中。

关于lua - 使用 luarocks 安装 luasocket,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18011416/

hai mươi bốn 4 0
Bài viết được đề xuất: jsf-2 - 静默 FullAjaxExceptionHandler
Bài viết được đề xuất: sql - 将listagg函数限制为前4000个字符
Bài viết được đề xuất: ipython-notebook - 可以从 PythonAnywhere 提供 IPython Notebook
Bài viết được đề xuất: web-services - api 检索附近城市的兴趣点
行者123
Hồ sơ cá nhân

Tôi là một lập trình viên xuất sắc, rất giỏi!

Nhận phiếu giảm giá Didi Taxi miễn phí
Mã giảm giá Didi Taxi
Giấy chứng nhận ICP Bắc Kinh số 000000
Hợp tác quảng cáo: 1813099741@qq.com 6ren.com