blob: 216e042dee653fd00857eb1b660fa7e1f3210c96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# Installation instructions for macOS
LuaRocks is a command-line tool. You can install LuaRocks using one of the
third-party package managers available for macOS (formerly known as "Mac OS X"
or "OS X"), or you may install it manually, in the Unix way.
# Option 1: using Homebrew
One option is to use [Homebrew](https://brew.sh). If you don't have it
installed, follow its installation instructions.
If you already have it installed, make sure it is up to date so you pick the
most recent version of LuaRocks:
```
brew update
```
and then install LuaRocks:
```
brew install luarocks
```
# Option 2: installing it manually
If you do not wish to use a package management tool to install LuaRocks, you
can install it on macOS as you would do in any other Unix system, assuming you
have the Mac Developer Tools installed. Download the Unix tarball and then
follow the [installation instructions for
Unix](installation_instructions_for_unix.md) to install it to /usr/local.
# Next steps
Once LuaRocks is installed, learn more about [using
LuaRocks](using_luarocks.md).
|