Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

LuaRocks

From Wikipedia, the free encyclopedia
Package manager for Lua
This article has multiple issues. Please helpimprove it or discuss these issues on thetalk page.(Learn how and when to remove these messages)
The topic of this articlemay not meet Wikipedia'snotability guidelines for products and services. Please help to demonstrate the notability of the topic by citingreliable secondary sources that areindependent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to bemerged,redirected, ordeleted.
Find sources: "LuaRocks" – news ·newspapers ·books ·scholar ·JSTOR
(December 2016) (Learn how and when to remove this message)
This articlerelies excessively onreferences toprimary sources. Please improve this article by addingsecondary or tertiary sources.
Find sources: "LuaRocks" – news ·newspapers ·books ·scholar ·JSTOR
(December 2016) (Learn how and when to remove this message)
(Learn how and when to remove this message)
LuaRocks
Original authorHisham Muhammad
DevelopersHisham Muhammad, et al.
Initial releaseAugust 9, 2007; 18 years ago (2007-08-09)
Stable release
3.10.0 / February 27, 2024; 20 months ago (2024-02-27)
Repository
Written inLua
Operating systemLinux,macOS,Windows (Cygwin),Solaris,OpenBSD,NetBSD,FreeBSD
TypePackage manager
LicenseMIT License
Websiteluarocks.orgEdit this at Wikidata

LuaRocks is apackage manager for theLua programming language that provides a standard format for distributing Lua modules (in a self-contained format called a "rock"), a tool designed to easily manage the installation of rocks, and a server for distributing them. While not included with the Lua distribution, it has been called the "de facto package manager for community-contributed Lua modules".[1]

The interface for LuaRocks is acommand-line tool calledluarocks which can install libraries and manage Lua rocks.[2] LuaRocks optionally integrates with Lua run-time loader to help find and load installed rocks while managing version dependencies. Though it is possible to use a private LuaRocks repository, the public repository is most commonly used for rocks management. As of December 2016, there are over 1,500 rocks in the public repository.[3]

The public repository helps users find rocks, resolvedependencies and install them. LuaRocks is compatible with Lua versions 5.1, 5.2 and 5.3, as well asLuaJIT.

History

[edit]

Development on LuaRocks was started in 2006 by Hisham Muhammad and was released to the public on August 9, 2007.[4]

In 2015, the public repository moved from a static page curated by the tool's developer to a new server written inMoonScript by Leaf Corcoran. Also, LuaRocks development was moved to GitHub in 2010.

Portability

[edit]

LuaRocks is written in Lua itself, and it iscross-platform. It is available in all majorLinux distributions. However, since distribution packages often lag behind the latest release installing the latest release is recommended. When installed from theupstreamtarball, LuaRocks can upgrade itself onUnix systems.

ForWindows, LuaRocks distributes a package file including LuaRocks, Lua 5.1 and required utilities that are missing in a typical Windows system. The Windows package supports bothMicrosoft Visual Studio andMinGW compiler suites. For running onCygwin, the Unix package should be used.

OnmacOS, LuaRocks is included with the Lua package of theHomebrew package manager. The Unix tarball can also be installed directly on macOS.

LuaRocks has also been reported to work onFreeBSD,OpenBSD,NetBSD andSolaris.[4]

Due to installation issues (permissions needed for system installation, lagging system packages, etc.), there ishererocks, a package available at thePython Package Index that can be installed viapip and provides installations of Lua and LuaRocks into a local directory upon demand.[5]

Projects using LuaRocks

[edit]

LuaRocks allows installing Lua modules to standard Lua paths as well as to customized locations. For this reason, it is possible to use it to install extensions to any project that uses standard Lua modules, such as theAwesome window manager. Some projects, however, adopted LuaRocks as their recommended solution for managing extensions, integrating it and in some cases, maintaining their own repository of project-specific rocks. Some projects that use LuaRocks in this fashion are:

  • Kong Gateway - an open-source API gateway. Kong uses LuaRocks for building the gateway and supports installing plugins and additional rocks.[6]
  • Torch - Torch, a framework for machine learning, uses LuaRocks for managing its modules. Torch uses its own rocks repository.[7]
  • Tarantool - the Tarantool database uses LuaRocks for managing its extensions.[8]

See also

[edit]

References

[edit]
  1. ^"Lua: Not Your Average Scripting Language".ActiveState Blog. 22 November 2016. Retrieved9 January 2017.
  2. ^"Using LuaRocks".LuaRocks wiki. Retrieved30 December 2016.
  3. ^"LuaRocks Stats".LuaRocks.org. Retrieved30 December 2016.
  4. ^ab"Release history".LuaRocks wiki.
  5. ^"hererocks".PyPI. Retrieved2022-05-18.
  6. ^"(un)Installing your plugin".Kong Gateway - Kong Docs. Retrieved27 February 2024.
  7. ^"Rocks for Torch".Torch rocks repository. Retrieved30 December 2016.
  8. ^"Tarantool Rocks".Tarantool. Retrieved30 December 2016.

External links

[edit]
Ports,distributions
Package manager
IDEs
Applications,frameworks
Retrieved from "https://en.wikipedia.org/w/index.php?title=LuaRocks&oldid=1281049533"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp