Luarocks - lua ํจํค์ง ๊ด๋ฆฌ
INTRO lua์ ํ์ฅ ํจํค์ง๋ฅผ ์ค์นํ๊ณ ๊ด๋ฆฌํ๋ ํ๋ก๊ทธ๋จ์ด๋ค. INSTALL and SETUP Install System-Wide : /usr/local/ $ sudo apt install luarocks # luarocks ์ค์น $ sudo luarocks install stdlib # ํ์ค ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น $ sudo chmod a+r /usr/local/share/lua/5.1/* # ์ผ๋ฐ์ฌ์ฉ์ ์ฝ๊ธฐ ๊ถํ ๋ถ์ฌ $ sudo luarocks install package_name # ํจํค์ง ์ค์น Install User Base : $HOME/.luarocks $ sudo apt install luarocks # luarocks ์ค์น $ echo 'PATH=$PATH:$HOME/.luarocks/bin' >> ~/.bashrc # add luarock bin path $ echo 'eval "$(luarocks path --bin)"' >> ~/.bashrc # add LUA_PATH, LUA_CPATH $ . ~/.bashrc $ luarocks install --local package_name # ํจํค์ง ์ค์น (--local) Rcoktree Structure: ๊ธฐ๋ณธ ์ค์น ๊ตฌ์กฐ {base} (base rocks tree directory) โโโ bin (deployment of command line scripts) โโโ lib โ โโโ luarocks โ โ โโโ rocks (contains manifest and sub-dirs with rocks) โ โ โ โโโ lua โ โโโ 5.1 (deployment of binary modules) โ โโโ share โโโ lua โโโ 5.1 (deployment of Lua modules) Usage $ luarocks # show help and usage $ luarocks list # show installed packages $ luarocks search pack_name # search packages $ luarocks install pack_name # remove installed packages $ luarocks show pack_name # show info installed packages $ luarocks remove pack_name # remove installed packages ํจํค์ง ์ค์น ๋ฐ ์ฌ์ฉ๋ก ํจํค์ง๋ http://luarocks.org ์ฐธ์กฐ - ๊ฐ ๋ชจ๋ ๋ค์ด๋ก๋ ์์๋ ์ฐธ๊ณ ...