gplugin/gplugin

5b02e2cd29e2
Parents d54f5079d963
Children 47d715f222bc
Add a bunch of crap about how to get lgi installed on macos

Testing Done:
I copied the stuff I typed manually, so it should be good?

Reviewed at https://reviews.imfreedom.org/r/313/
  • +27 -2
    HACKING.OSX
  • --- a/HACKING.OSX Tue Dec 29 00:26:36 2020 -0600
    +++ b/HACKING.OSX Tue Dec 29 01:39:06 2020 -0600
    @@ -10,8 +10,33 @@
    ## Lua
    For the Lua loader to work, you need to install `lgi` from luarocks either
    -systemwide or to a virtual environment created by LuaDist, vert, or something
    -along those lines, then you just need to run `luarocks install lgi`.
    +systemwide for lua 5.1 as `lgi` does not currently work with lua 5.4 which is
    +the default in homebrew.
    +
    +To make this work, you'll need to install both `lua@5.1` and `luarocks` via
    +`brew install lua@5.1 luarocks`. Once those are installed, you'll need to
    +create `/usr/local/etc/luarocks/config-5.1.lua` with the following contents.
    +
    +```
    +-- LuaRocks configuration
    +
    +rocks_trees = {
    + { name = "user", root = home .. "/.luarocks" };
    + { name = "system", root = "/usr/local" };
    +}
    +lua_interpreter = "lua5.1";
    +variables = {
    + LUA_DIR = "/usr/local/opt/lua@5.1";
    + LUA_BINDIR = "/usr/local/opt/lua@5.1/bin";
    +}
    +```
    +
    +Once that is done, you can then finally install `lgi` with the following
    +command.
    +
    +```
    +luarocks --lua-version=5.1 install lgi
    +```
    ## Python3