fix frontmatter on wiki/pages/lua.md
This commit is contained in:
parent
40f9475724
commit
5432dec9e5
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
author: ~evn
|
||||
published: false
|
||||
title: lua
|
||||
category:
|
||||
- main
|
||||
- main
|
||||
---
|
||||
|
||||
# Lua
|
||||
|
@ -16,7 +17,7 @@ This page will explain how to set up your tilde.team account for
|
|||
Python's PIP, Perl's PPM, and other programming laguages' package mangers. To
|
||||
download and install a package from the Luarocks repository type the following
|
||||
into a terminal:
|
||||
`luarocks install [package-name] --local`
|
||||
`luarocks install [package-name] --local`
|
||||
where [package-name]
|
||||
is the name of the package you want to install (without square brackets). The
|
||||
'--local' argument is necessary to install the package to your user folder
|
||||
|
@ -29,7 +30,7 @@ package to, so the Lua interpreter will not be able to find installed packages.
|
|||
The `luarocks path` command can be used to modify the LUA_PATH and LUA_CPATH
|
||||
environment variables to include the paths that Luarocks installs packages to.
|
||||
The following command will modify the environment variables appropriately:
|
||||
`eval $(luarocks path --bin)`
|
||||
`eval $(luarocks path --bin)`
|
||||
Add this to your ~/.bashrc file to make these environment variables always
|
||||
include the necessary paths.
|
||||
|
||||
|
@ -45,7 +46,6 @@ default. To run Lua version 5.1 simply type `lua5.1`.
|
|||
|
||||
To set the default Lua interpreter to version 5.1 set a bash alias with the
|
||||
following command:
|
||||
`alias lua="/usr/bin/lua5.1"`
|
||||
`alias lua="/usr/bin/lua5.1"`
|
||||
Add this to your ~/.bashrc file to always use version 5.1 as the default Lua
|
||||
interpreter.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user