@@ -24,6 +24,7 @@ git clone https://www.github.com/pallene-lang/lua-internals/
2424cd lua-internals
2525make guess -j4
2626sudo make install
27+ cd -
2728```
2829
2930If you are on Linux and would like the up arrow to work in the Lua REPL,
@@ -42,12 +43,13 @@ To build Luarocks, unpack the sources and run `configure`, `make`, and `make ins
4243In the configure step, use ` --with-lua ` to point to our special Lua.
4344
4445``` sh
45- wget https://luarocks.org/releases/luarocks-3.9 .1.tar.gz
46- tar xf luarocks-3.9 .1.tar.gz
47- cd luarocks-3.9 .1
46+ wget https://luarocks.org/releases/luarocks-3.11 .1.tar.gz
47+ tar xf luarocks-3.11 .1.tar.gz
48+ cd luarocks-3.11 .1
4849./configure --with-lua=/usr/local
4950make
5051sudo make install
52+ cd -
5153```
5254
5355By default, Luarocks installs packages into /usr/local, which requires sudo.
@@ -64,6 +66,10 @@ Remember that in order for the local rocks tree to work, you must to set the PAT
6466eval " $( luarocks path) "
6567```
6668
69+ ### Install the Pallene Tracer
70+
71+ Refer to the README at https://github.com/pallene-lang/pallene-tracer
72+
6773### Install Pallene
6874
6975Finally, we can use Luarocks to build and install the Pallene compiler.
@@ -73,6 +79,20 @@ This will also download and install the necessary Lua libraries.
7379luarocks make pallene-dev-1.rockspec
7480```
7581
82+ If you used non-standard install locations in the previous steps, you may have to specify them.
83+
84+ ``` sh
85+ export CPATH=/usr/local/include
86+ luarocks make pallene-dev-1.rockspec PTRACER_DIR=/usr/local
87+ ```
88+
89+ To avoid specifying PTRACER_DIR every time you run Luarocks, you can add it to the config.
90+
91+ ```
92+ luarocks config PTRACER_DIR /usr/local
93+ luarocks make pallene-dev-1.rockspec
94+ ```
95+
7696## Using Pallene
7797
7898To compile a ` foo.pln ` file to a ` foo.so ` module, call ` pallenec ` as follows.
0 commit comments