Lua的包裹管理系统? [英] Lua's package management system?

查看:97
本文介绍了Lua的包裹管理系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Lua的标准软件包管理系统和存储库是什么?类似于 Mac OS X brewnode.jsnpm.

What's the Lua's standard package management system and repository? Like brew for Mac OS X, npm for node.js.

推荐答案

没有 standard Lua软件包管理系统,但是您可以尝试以下方法:

There is no standard Lua package management system, but you can try out the following:

  • LuaRocks - contains a rather large number of Lua modules distributed as rocks. Once LuaRocks is installed, the installation is simple: luarocks install desired-package. On Linux/Unix/Mac, this will install into /usr/local/{share,lib}/lua/5.1, where the Lua interpreter looks for modules.

LuaDist -旨在使用Lua和模块( dist ). LuaDist中的所有内容都是基于CMake的,这意味着可以使用CMake支持的任何编译器/IDE轻松地对其进行编译. LuaDist还具有广泛的存储库,其中包含Lua模块以及许多C依赖项/库,从而可以创建一个真正独立的Lua发行".安装与LuaRocks-luadist install desired-package相同.

LuaDist - designed to create an independent standalone directory with Lua and modules (a dist). Everything in LuaDist is CMake-based, which means that it can be easily compiled using any compiler/IDE supported by CMake. LuaDist also has an extensive repository which contains Lua modules and also many C dependencies/libraries, which allows to create a truly independent Lua "distribution". Installation is the same as with LuaRocks - luadist install desired-package.

这篇关于Lua的包裹管理系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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