aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Beckmann <r.beckmann@protonmail.com>2025-03-09 21:25:07 +0000
committerGitHub <noreply@github.com>2025-03-09 21:25:07 +0000
commit25f26db3df3f452e657bcb4ffe9a89c0c37b06fd (patch)
treebce08cbdfdd981d17bb4e37be8df996fcf0bf8cb
parent6e4e43356d5bfac748b4457f9dad4b0757fee85b (diff)
downloadluarocks-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.md36
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
3First of all, get the [latest ".tar.gz" package
4here](http://luarocks.github.io/luarocks/releases).
5
6The LuaRocks build system for Unix is based on a simple "configure" script and 3The LuaRocks build system for Unix is based on a simple "configure" script and
7a Makefile. The "configure" script offers some flags that are useful for 4a Makefile.
8different 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
29Then, to build and install Lua, either install it using your package 25Then, to get Lua, either install it using your package manager of choice, or
30manager of choice, or run the following commands to download the 26 follow the instructions below.
31package 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/).
32latest 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
42Once Lua and its dependencies are installed, it is time to install LuaRocks: 38Once 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
54Installation should be done! Run `luarocks` with no arguments to 52Installation should be done! Run `luarocks` with no arguments to
55see a summary of your settings. 53see a summary of your settings.