Posted at

Luaをインストールしてみた

More than 5 years have passed since last update.

Luaインストール

あまりにも簡単すぎた・・・。


環境

brew -v 


Homebrew 0.9.5



インストール

brew install lua


Warning: Your Xcode (4.6.2) is outdated

Please update to Xcode 4.6.3.

Xcode can be updated from the App Store.

==> Downloading http://www.lua.org/ftp/lua-5.1.5.tar.gz


################################################################## 100.0%

==> Downloading patches


################################################################## 100.0%

==> Patching

patching file Makefile

patching file src/Makefile

patching file src/lua.c

==> make macosx INSTALL_TOP=/usr/local/Cellar/lua/5.1.5 INSTALL_MAN=/usr/local/Cellar/lua/5.1.5/share/man/man1

==> make install INSTALL_TOP=/usr/local/Cellar/lua/5.1.5 INSTALL_MAN=/usr/local/Cellar/lua/5.1.5/share/man/man1

? /usr/local/Cellar/lua/5.1.5: 15 files, 300K, built in 6 seconds


lua


Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio



いつもの Hello World

print("Hello Wolrd!!")


Hello World!



参考サイト

http://y-ken.hatenablog.com/entry/macosx-install-lua-luajit-luarocks