Advertisement
TangentFox

Lapis/MoonScript dev (macOS)

Jan 27th, 2021 (edited)
846
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.17 KB | None | 0 0
  1. # Homebrew
  2. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  3.  
  4. brew install luajit   # not strictly needed
  5. brew install wget
  6.  
  7. # lua 5.1.5
  8. wget https://www.lua.org/ftp/lua-5.1.5.tar.gz
  9. tar xvf lua-5.1.5.tar.gz
  10. cd lua-5.1.5
  11. make macosx
  12. sudo make install
  13. cd ..
  14.  
  15. # luarocks 3.5.0
  16. wget https://luarocks.org/releases/luarocks-3.5.0.tar.gz
  17. tar xvf luarocks-3.5.0.tar.gz
  18. cd luarocks-3.5.0
  19. ./configure
  20. make
  21. sudo make install
  22.  
  23. # these are just things I want
  24. luarocks install moonscript
  25. luarocks install htmlparser
  26. luarocks install lua-cjson
  27.  
  28. brew tap openresty/brew
  29. brew install openresty
  30.  
  31. # this stupid-long line is a requirement for lapis
  32. #  (for some reason, the way Homebrew installs OpenSSL isn't compatible without this)
  33. luarocks install luaossl OPENSSL_DIR=/usr/local/opt/openssl OPENSSL_INCDIR=/usr/local/opt/openssl/include OPENSSL_LIBDIR=/usr/local/opt/openssl/lib CRYPTO_DIR=/usr/local/opt/openssl CRYPTO_INCDIR=/usr/local/opt/openssl/include
  34. luarocks install lapis
  35. luarocks install lapis-console
  36.  
  37. # experimental
  38. luarocks install lapis-exceptions
  39. luarocks install --server=https://luarocks.org/dev lapis-community
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement