aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-07-05 23:44:18 +0200
committersrdusr <trevorgray@srdusr.com>2023-07-05 23:44:18 +0200
commitb2e57c35ed46dc3b3d34ebeef6d4541063769b16 (patch)
tree039608b470f49563434cb8a66946d9ee10804d2f /README.md
parent0844a751e505250fe0d7dc3ae58b15767d02542f (diff)
downloaddotfiles-b2e57c35ed46dc3b3d34ebeef6d4541063769b16.tar.gz
dotfiles-b2e57c35ed46dc3b3d34ebeef6d4541063769b16.zip
Simplified lua installation
Diffstat (limited to 'README.md')
-rw-r--r--README.md35
1 files changed, 16 insertions, 19 deletions
diff --git a/README.md b/README.md
index 1fbb40c..54c1ec9 100644
--- a/README.md
+++ b/README.md
@@ -17,32 +17,29 @@
##### Java
Recommended to choose Openjdk 8 or 10 otherwise get an error when using Android tools
##### Rust
+- Download and run rustup script
```bash
$ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
```
##### Lua
-- Download and install Lua
+- Download LuaRocks
```bash
-$ curl -R -O http://www.lua.org/ftp/lua-5.3.5.tar.gz
-$ tar -zxf lua-5.3.5.tar.gz
-$ cd lua-5.3.5
-$ make linux test
-$ sudo make install
+$ git clone git://github.com/luarocks/luarocks.git
```
-- Download and install LuaRocks
+- Install and specify the installation directory to build and configure LuaRocks
```bash
-$ wget https://luarocks.org/releases/luarocks-3.8.0.tar.gz
-$ tar zxpf luarocks-3.8.0.tar.gz
-$ cd luarocks-3.8.0
-```
- - Run this command (This will attempt to detect the installation of Lua and see for any errors)
- ```bash
- ./configure --with-lua-include=/usr/local/include
- ```
- - Run make
- ```bash
- $ sudo run make install.
- ```
+./configure --prefix=/usr/local/luarocks
+make build
+sudo make install
+```
+- Add LuaRocks to system's environment variables by running the following command or add it .bashrc/.zshrc or any similar shell configuration file to make it persistent across sessions
+```bash
+export PATH=$PATH:/usr/local/luarocks/bin
+```
+- Install Lua
+```bash
+$ luarocks install lua
+```
##### PHP
- Install PHP