diff options
author | Richard Beckmann <r.beckmann@protonmail.com> | 2025-03-09 21:25:07 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-09 21:25:07 +0000 |
commit | 25f26db3df3f452e657bcb4ffe9a89c0c37b06fd (patch) | |
tree | bce08cbdfdd981d17bb4e37be8df996fcf0bf8cb | |
parent | 6e4e43356d5bfac748b4457f9dad4b0757fee85b (diff) | |
download | luarocks-25f26db3df3f452e657bcb4ffe9a89c0c37b06fd.tar.gz luarocks-25f26db3df3f452e657bcb4ffe9a89c0c37b06fd.tar.bz2 luarocks-25f26db3df3f452e657bcb4ffe9a89c0c37b06fd.zip |
docs: improve installation instructions for unix (#1763)
* unix installation: improve lua and luarocks build instructions
* unix installation: minor fixes
* unix installation: minor improvement
-rw-r--r-- | docs/installation_instructions_for_unix.md | 36 |
1 files changed, 17 insertions, 19 deletions
diff --git a/docs/installation_instructions_for_unix.md b/docs/installation_instructions_for_unix.md index 79afc64e..a13db9f6 100644 --- a/docs/installation_instructions_for_unix.md +++ b/docs/installation_instructions_for_unix.md | |||
@@ -1,11 +1,7 @@ | |||
1 | # Installation instructions for Unix | 1 | # Installation instructions for Unix |
2 | 2 | ||
3 | First of all, get the [latest ".tar.gz" package | ||
4 | here](http://luarocks.github.io/luarocks/releases). | ||
5 | |||
6 | The LuaRocks build system for Unix is based on a simple "configure" script and | 3 | The LuaRocks build system for Unix is based on a simple "configure" script and |
7 | a Makefile. The "configure" script offers some flags that are useful for | 4 | a Makefile. |
8 | different models of use of LuaRocks. Run `./configure --help` for details. | ||
9 | 5 | ||
10 | ## Quick start | 6 | ## Quick start |
11 | 7 | ||
@@ -26,30 +22,32 @@ For Yum-based distributions, try this: | |||
26 | -$ sudo yum install libtermcap-devel ncurses-devel libevent-devel readline-devel | 22 | -$ sudo yum install libtermcap-devel ncurses-devel libevent-devel readline-devel |
27 | ``` | 23 | ``` |
28 | 24 | ||
29 | Then, to build and install Lua, either install it using your package | 25 | Then, to get Lua, either install it using your package manager of choice, or |
30 | manager of choice, or run the following commands to download the | 26 | follow the instructions below. |
31 | package tarball, extract, build and install it. (Replace 5.3.5 with the | 27 | * Download and unpack [latest Lua ".tar.gz" file](https://www.lua.org/ftp/). |
32 | latest Lua version.) | 28 | |
29 | * Go to the unpacked Lua directory. | ||
30 | |||
31 | * To build and install Lua, run the following commands. | ||
33 | 32 | ||
34 | ``` | 33 | ``` |
35 | -$ curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz | 34 | -$ make all test |
36 | -$ tar -zxf lua-5.3.5.tar.gz | ||
37 | -$ cd lua-5.3.5 | ||
38 | -$ make linux test | ||
39 | -$ sudo make install | 35 | -$ sudo make install |
40 | ``` | 36 | ``` |
41 | 37 | ||
42 | Once Lua and its dependencies are installed, it is time to install LuaRocks: | 38 | Once Lua and its dependencies are installed, it is time to install LuaRocks: |
43 | 39 | ||
44 | * Download and unpack [latest ".tar.gz" file](http://luarocks.github.io/luarocks/releases). | 40 | * Download and unpack [latest LuaRocks ".tar.gz" file](https://luarocks.github.io/luarocks/releases/). |
45 | 41 | ||
46 | * Run `./configure --with-lua-include=/usr/local/include`. (This will attempt | 42 | * Go to the unpacked LuaRocks directory. |
47 | to detect your installation of Lua. If you get any error messages, see the | ||
48 | section [Customizing your settings](#customizing-your-settings), below.) | ||
49 | 43 | ||
50 | * Run `make`. | 44 | * To configure, build and install LuaRocks, run the following commands. The `./configure` script will attempt to detect your installation of Lua. If you get any error messages, see the section "Customizing your settings", below. |
51 | 45 | ||
52 | * As superuser, run `make install`. | 46 | ``` |
47 | -$ ./configure --with-lua-include=/usr/local/include | ||
48 | -$ make | ||
49 | -$ sudo make install | ||
50 | ``` | ||
53 | 51 | ||
54 | Installation should be done! Run `luarocks` with no arguments to | 52 | Installation should be done! Run `luarocks` with no arguments to |
55 | see a summary of your settings. | 53 | see a summary of your settings. |