LUA environment InstallationThe course is the content to be introduced in this article.LUAOfInstallMethod. For more information, see this article.
My development machine is windows xp sp2
The server is RedHat linux 3.4.4.
1. download the latest package from Lua's official website http://www.lua.org/. I downloaded the lua-5.1.4.tar.gz release package.
Ii. SecureCRT rz command upload lua-5.1.4 to the server. Decompress using the tar-xzvf/lua-5.1.4.tar.gz command to extract a lua-5.1.4 folder.
3. Use the cd/lua-5.1.4 to enter the current working directory to the lua-5.1.4 folder.
4. Run the make command and the prompt is:
- Please do
- make PLATFORM
- where PLATFORM is one of these:
- aix ansi bsd freebsd generic linux macosx mingw posix solaris
- See INSTALL for complete instructions.
Check whether your system PLATFORM name is in the supported list. If yes, run the make PLATFORM command. Otherwise, run the make generic command according to the INSTALL instructions of lua.
Generally, compilation is successful. If a compilation error occurs, check RPWT first.
Finally, run the make install command.
Now, the lua language environment has been successfully installed. Enter the lua command under SecureCRT to enter the lua command line!
- print('Hi,this is my first lua program!')
Of course, it can also become a little more Lua:
- io.write('Hi,this is my first lua program!'')
Attached operation command:
- [root@localhost ~]# rz
- [root@localhost ~]# tar -xzvf lua-5.1.4.tar.gz
- [root@localhost ~]# cd lua-5.1.4
- [root@localhost lua-5.1.4]# make
- [root@localhost lua-5.1.4]# ls
- [root@localhost lua-5.1.4]# cat /proc/version
- [root@localhost lua-5.1.4]# make PLATFORM
- [root@localhost lua-5.1.4]# make generic
- [root@localhost lua-5.1.4]# make install
-
- [root@localhost lua-5.1.4]# lua
-
- Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio
- > print('hi,this is my frist lua program')
- hi,this is my frist lua program
- >
Lua environment Configuration
To study the wow plug-in, learn Lua.
1. http://luaforge.net/frs/download.php/1037/LuaEdit_2_5.zip download a Lua editor and install
2. Run LuaEdit to create a project. Check View-Debug Windows-Lua OutPut to View the program OutPut.
3. Test it with a simple Hello World.
- -- Hello World in Lua
- print("Hello World.")
Then F5, if the correct result can be output, then OK.
Summary: DetailsLUA environment InstallationThe content of the Process learning tutorial is complete. I hope this article will help you!