Linux, compile and install Lua scripting language environment

2011-05-01  来源:本站原创  分类:Ruby  人气:74 

Lua is undoubtedly an air of the East - "simple but not simple," I like it.

My development machine is: RedHat Linux AS 5

First, Lua's official website (http://www.lua.org/) Download the latest release package (PS: I downloaded the lua-5.1.4.tar.gz release package, all of this version of the following steps for the sample, Please download the specific version for their own to make the relevant changes.)

Secondly, the use of tar-xzvf / path-to-your-lua-tar-file-folder/lua-5.1.4.tar.gz command to extract, will get a lua-5.1.4 folder.

Third, use cd / path-to-your-lua-tar-file-folder/lua-5.1.4 the current working directory to lua-5.1.4 folder.

Fourth, run the make command, you will see the following prompt:
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.

View your platform name is in the support list, if you continue to run make PLATFORM command, or according to the INSTALL lua that we can choose to run the make generic command (PS: I am here is compiled for linux, that make linux). Compilation is successful under normal circumstances, if the compiler error that you need to go check the RPWT (ha ha, joke slightly ~ because I do not know how to compile error excluded).

Finally, run make install command

At this point, lua language environment has been successfully installed in the terminal, enter the command into the lua lua command-line now!

print ('Hello, world!')

Well, maybe write a little more Lua:

io.write ('Hello, world!')

Oh, and finally recommended a lua entry Notes: Lua script syntax description (http://www.cnblogs.com/ly4cn/archive/2006/08/04/467550.html)

相关文章
  • Linux, compile and install Lua scripting language environment 2011-05-01

    Lua is undoubtedly an air of the East - "simple but not simple," I like it. My development machine is: RedHat Linux AS 5 First, Lua's official website (http://www.lua.org/) Download the latest release package (PS: I downloaded the lua-5.1.4.tar.

  • LUA scripting language entry 2010-03-28

    LUA scripting language entry Preliminary Study Lua Programming: Mu Feng (Second Life members) This article comes from CSDN blog: http://blog.csdn.net/skyremember/archive/2008/10/17/3089447.aspx In this article, I want to tell you how to Lua programmi

  • Linux ubuntu lamp install and configure the environment phpmyadmin 2010-12-30

    Indicate Reprinted: http://farlee.info/archives/linux-ubuntu-lamp-apache-mysql-php-phpmyadmin-install-configuration.html of FarLee PHP development and server operating environment of choice LAMP combination, that Linux + Apache + Mysql + Php / Perl /

  • separately under linux compile and install Apache rewrite_module 2010-12-03

    Apache has been compiled and installed over, today broke a lifebox, Bahrain and found to be starting a rewrite, so give it installed a ~ ~ Find the apache source package installation files: # Tar zxvf httpd-2.2.11.tar.gz # Cd httpd-2.2.11/modules/map

  • Learn Linux, compile and install mysql-5.0.45.tar.gz 2011-04-24

    Compiled under Linux install mysql-5.0.45.tar.gz Reproduced <! - Body start -> (1) ------------- ---------- Preparatory work 1: If the downloaded file is named: mysql-5.0.45.tar.gz 2: If the copy to the / home under the 3: groupadd mysql # add the m

  • linux platform, compile and install boost library 2011-01-06

    from http://dev.firnow.com/course/3_program/c++/cppjs/20101102/547433.html linux install boost library build platform Quote 1.Boost library Download: http://sourceforge.net/projects/boost/files/boost/1.44.0/ 2.Boost library compile, install download

  • ACE compile and install, for windows.Linux 2010-07-22

    ACE compile and install, for windows, Linux2006-10-11 09:14 from www.acejoy.com ACE Web Programming Forum 1. Windows for MSVC under the installation and configuration we are using ACE-5.4 + TAO-1.4 + CIAO-0.4.zip, Windows Next unzip the compressed pa

  • How to compile and install source Linux software package 2011-08-26

    First, what is the source package software; As the name suggests, the source code package is visible in the source code package, based on Linux and BSD systems software is most common; visible in the domestic source software is almost extinct; most o

  • install linux compile zlib 2010-04-09

    install linux compile zlib Keywords: linux zlib zlib official website: http://www.zlib.net Download the source code to install the zlib package. The latest version of zlib is zlib1.2.3, installation begins; $ Wget http://www.zlib.net/zlib-1.2.3.tar.g

  • Compile and install Linux, MySQL 5.5.11 Notes (rpm) 2011-05-26

    The latest version of MySQL 5.5.11 need to install cmake compile the estimated future versions will be used this way, found some installation method is wrong in some places, their own record of finishing the installation of a specially so steps and p

  • Linux apache compile and install 2011-06-30

    1 Download httpd-2.2.15.tar.gz [Root @ test-AS4 ~] # mkdir-P / usr / local / src / apache / # create a source package store directory [Root @ test-AS4 ~] # cd / usr / local / src / apache / # to httpd-2.2.15.tar.gz into this directory [Root @ test-AS

  • Record source compile and install linux mysql5.5.8 2011-01-11

    Reference: http://blog.csdn.net/xqandpan/archive/2011/01/05/6118443.aspx System: ubuntu10.10 mysql source files: mysql-5.5.8.tar.gz Install the required tools: cmake, GNU make, gcc, Perl, libncurses5-dev, bison (optional), chkconfig -----------------

  • In the Linux platform to install and configure Ruby on Rails Detailed 2009-03-02

    ruby on rails recommend the production environment is running Linux / FreeBSD / Unix, or Unix family of operating systems, using lighttpd + FCGI solution. The following will be my Linux operating system, lighttpd + FCGI, MySQL database as an example,

  • C-based scripting language development technology-csp 2011-05-01

    What is eybuild http://www.eybuild.com/develop/index.htm eyBuild, is short for Easy Build, which is the CSP (C Language Service Page) development kit in general. eyBuild WEB applications on embedded devices is the ideal development tool, with a WEB s

  • What is a compiled language. Explanatory language and scripting language 2010-03-12

    The computer can not directly understand the high-level language, can only understand machine language directly, it must be high-level language should be translated into machine language, the computer can be value-based high-level language program. T

  • Compile and install the ubuntu8.10 input method ibus 2010-07-19

    Recent temporary exchange for the original x61, it contained ubuntu8.10, input method is a small penguin (fcitx) and scim. 10.04 are used to the ibus, that this input method is quite good, especially the one of the Pinyin input method, and the Window

  • Compile and install in ubuntu8.10 input method ibus 2010-07-19

    Recent temporary exchange for the original x61, it contained ubuntu8.10, input method is a small penguin (fcitx) and scim. 10.04 are used to the ibus, that this input method is quite good, especially the one of the Pinyin input method, and the Window

  • CentOS5.5 compile and install PHP 5.3.6 on 2011-04-06

    CentOS 5.6 have not been released, CentOS 5.5 does not support the PHP5.1.6 json / hash, because studying Postfix + Dovecot mail system, webmail using RoundCube new version (v0.5) not less than the required PHP version 5.2.1, and decided to compile a

  • Compile the install Memcached on CentOS 5.6 2011-07-06

    Original Address: http://www.sunchis.com/html/db/memcached/2011/0526/333.html Memcached on a first schematic, so the brothers do not understand the popularity of what memcached: Brief description of the basic principles as follows: ① client first acc

  • JDK6 new features: Scripting language support (Scripting) 2010-03-29

    Overview JDK6 increased its support for scripting languages (JSR 223), theory is the scripting language to compile into bytecode, so scripting languages can also enjoy the Java platform, many advantages, including portability, safety, etc. In additio