1. Download tolua + +:http://www.codenix.com/~tolua/
2. Installing scons with brew
brew install scons
3. Unzip the tolua package and edit the config_ posix.py File, delete the reference of lualib library. This is the special feature of MAC system
4. Execute the scons installation command
scons
scons install
You can see the tolua + + program in the / usr / local / bin directory