1, the installation command first installs brew from the Mac AppStore.
Brew can only be used by current users. $ Brew Install LUA--with-completion
==> Downloading http://www.lua.org/ftp/lua-5.2.3.tar.gz###################################################### ################## 100.0%==> Downloading http://luajit.org/patches/lua-5.2.0-advanced_readline.patch########## ############################################################## 100.0%==> Downloading http://lua-users.org/ files/wiki_insecure/power_patches/5.2/lua-5################################################################### ##### 100.0%==> patchingpatching file makefilepatching file src/makefilepatching file Src/lua.chunk #1 succeeded at 231 (offset-5 lines). Hunk #2 succeeded at 559 (offset-4 lines). Hunk #3 succeeded at 575 (offset-4 lines). patching file src/lua.c==> make MacOSX install_top=/usr/local/cellar/lua/5.2 .3_1 install_man=/usr/local==> make INSTALL install_top=/usr/local/cellar/lua/5.2.3_1 install_man=/usr/locaerror : The ' Brew link ' step did not complete successfullythe formula built, but was not symlinked into/usr/localcould not Symli NK Lib/liblua.5.2.3.dylib/usr/local/lib is not writable. You can try again using:brew link lua==> Summary Mac install LUA environment