Luarocks无法编译对象 [英] Luarocks Failed to Compile Object

查看:134
本文介绍了Luarocks无法编译对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对于使用诸如luarocks之类的东西来安装库还很陌生,但是我遇到了一个问题,我不确定在为Lapis安装依赖项时该如何解决.

I'm pretty new to using things like luarocks to install libraries, and I'm running into a problem I'm not sure how to fix when installing the dependencies for Lapis.

如您所见,我没有为Lapis安装任何依赖项(我假设当我尝试下载Lapis时,它们将自动安装).我为此使用常规的命令提示符.这么新,我想我可能做错了很多事情.我应该使用其他东西吗?任何指针都很好,谢谢!

As you can see, I have none of the dependencies installed for Lapis (I assume that they'll automatically install when I attempt to download Lapis). I'm using the regular command prompt for this. Being so new, I imagine I could be doing many things wrong. Should I be using something else? Any pointers would be great, thanks!

推荐答案

获取此消息:

'cl' is not recognized as an internal or external command,
operable program or batch file.

表示可执行文件搜索路径(PATH环境变量)中没有C编译器.特别是,LuaRocks正在从cl搜索,该文件是Microsoft Visual Studio的C编译器.如果已安装Visual Studio,则应启动其"x86开发命令提示符",然后在PATH中设置cl.exe所在的目录,LuaRocks会找到它.

means that you don't have a C compiler in your executables search path (PATH environment variable). In particular, LuaRocks is searching from cl, which is the C compiler from Microsoft Visual Studio. If you have Visual Studio installed, you should launch its "x86 Development Command Prompt", and then the directory where cl.exe is will be set in your PATH and LuaRocks will find it.

在Windows上,Visual Studio是LuaRocks的默认配置,但您也可以与 MingW 一起使用.设置此设置最简单的方法是在安装LuaRocks时使用INSTALL /MW.

Using Visual Studio is the default configuration for LuaRocks on Windows, but you can also using with MingW. The easiest way to set this up is to use INSTALL /MW when installing LuaRocks.

无论如何,我不确定Lapis是否与Windows兼容-您应该在其文档中进行检查!

In any case, I'm not sure if Lapis is compatible with Windows — you should check that in its documentation!

这篇关于Luarocks无法编译对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆