`
hongtoushizi
  • 浏览: 382937 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

How to Install Lua on Ubuntu 12.04 LTS

    博客分类:
  • lua
阅读更多

Lua is a lightweight, cross-platform scripting language with an easy to use C API. It is often used for providing end users an easy way to program the behavior of a software product, and embedded into other applications for this reason.

Installing Lua on Ubuntu is easy with apt-get. First, ssh to your Pod, and then run this command:

root@mypod:~# sudo apt-get install lua5.2

Now that it’s installed, let’s test out a simple Hello World application. Using your favorite text editor, create a file named “hello.lua” containing this:

print("Hello World")

You can run this using the “lua” binary, specifying the filename that you just saved:

root@mypod:~# lua hello.lua

To learn more about Lua, visit lua.org.

 

转载自: http://kb.solarvps.com/ubuntu/how-to-install-lua-on-ubuntu/

分享到:
评论

相关推荐

    Ubuntu12.04下交叉编译VLC-2.1.1-Win32程序的说明

    在本文中,我们将详细探讨如何在Ubuntu 12.04环境下进行VLC-2.1.1的交叉编译,以生成适用于Windows 32位系统的程序。这个过程涉及到安装必要的工具,设置编译环境,以及配置和编译源代码。 首先,交叉编译是在一个...

    apache_mod_lua

    |----bin #tools to build lua |----doc #document for mod_lua |----etc #lua.conf for apache |----lib #lua scripts library |----src #mod_lua source file |----web #web content to test mod_lua ...

    protobuf-lua

    protobuf-lua是一个专门为Lua语言设计的Google Protocol Buffers(protobuf)实现。Protocol Buffers是一种高效的数据序列化协议,由Google开发,用于结构化数据的序列化和反序列化。它与XML、JSON等格式相比,更小...

    使用 xls_to_lua.lua 把 xls 解析成 lua table

    解析文件使用 lua 编写,把 *.xls 解析成 lua table,双击 run.bat 文件值行解析,支持多子表解析,键值对 k/v 解析。 例子说明:https://blog.csdn.net/qq_26117171/article/details/127131168 支持解析的数据类型...

    LuaStudio安装包

    LuaStudio是一款专为Lua语言设计的集成开发环境(IDE),旨在提供高效、便捷的编程体验。作为一款专业的Lua编译器,它具有丰富的代码提示功能,可以帮助开发者快速编写和调试Lua脚本。运行性能流畅是其另一大特点,...

    lua-language-server2.3.7.zip

    安装lua-language-server 可以用于nvim中lua代码自动补全 使用方法可参考文章: https://blog.csdn.net/lxyoucan/article/details/120292520

    lua与Android交互,基本实现

    在Android开发中,有时我们需要使用脚本语言来增强应用的灵活性和可扩展性,而Lua就是这样一种轻量级、高效且易于学习的脚本语言。本文将深入探讨如何在Android应用中集成Lua,并实现Android与Lua之间的交互。 一、...

    Using LUA with Visual C++ (Introduction)

    LUA comes with its own library that contains ready-to-use functions but I prefer you to explain the complete version so you can understand better how LUA works. In order to execute LUA scripts you ...

    LuaForWindows_v5.1.4

    Lua for Windows (LfW) combines Lua binaries, Lua libraries with a Lua-capable editor in a single install package for the Microsoft Windows operating system. LfW contains everything you need to write, ...

    luanode-runtime:一个快速组合框架,用于在 nodejs 环境中运行 lua 项目和脚本,改编自 lua.vm.js

    安装 npm install luanode-runtime用法 var lua = require ( 'luanode-runtime' ) ;//Loads all of the lua files in a given directory (recurses into subdirectory) to an internal directory of your choice.//

    ansible-role-lua:配置和安装 Lua 软件

    Ubuntu 12.04+ 变量 路亚 名称 默认 描述 lua_install_method 包裹 Lua安装方法(源码或包) lua_package_name lua5.2 作为包安装时要安装的 Lua 包名 lua_source_version 5.2.3 从源代码安装时要安装的 Lua ...

    luaqt插件linux环境运行LuaQt

    例如,对于 Ubuntu,可以使用命令 `sudo apt-get install lua5.3 libqt5widgets5 libqt5core5a libqt5gui5` 安装必要的库。 3. **安装LuaQt**: `mkottman-lqt-e6050e7` 看起来像是 LuaQt 的某个特定版本或者分支...

    LUAC脚本解密_luac解密在线_luac4加密_luac反编译_luac4解密工具_luac解密工具

    LUAC脚本是一种基于Lua语言的编译格式,它将Lua源代码编译成字节码,以便在 Lua 解释器上高效运行。LUAC(Lua Compiler)是Lua官方提供的编译器,它将源代码转换为这种优化的字节码,以提高执行速度。在游戏开发、...

    protobuf转为lua代码

    标题中的“protobuf转为lua代码”指的是将使用Protocol Buffers(protobuf)编写的配置文件转换成Lua语言的脚本。Protocol Buffers是Google推出的一种数据序列化协议,它允许开发者定义数据结构,然后生成能够在各种...

    所有版本LUA源码

    所有版本LUA源码 lua-5.3.5 lua-5.3.4 lua-5.3.3 lua-5.3.2 lua-5.3.1 lua-5.3.0 lua-5.2.4 lua-5.2.3 lua-5.2.2 lua-5.2.1 lua-5.2.0 lua-5.1.5 lua-5.1.4 lua-5.1.3 lua-5.1.2 lua-5.1.1 lua-5.1 lua-5.0.3 lua-...

    LUAC反编译_LUC_lua反编译工具_luac_luac解密工具_Lua解密_

    Lua源代码是文本形式的,易于阅读和编写,但为了保护代码不被轻易篡改或盗用,开发者通常会将Lua代码编译成字节码(.lua.c文件或.luac文件)。"LUAC"就是Lua的官方编译器,它将Lua源代码转换为字节码,以提高执行...

    lua 523 on arm

    lua 5.2.3, linux , build by montavista5

    Beginning Lua Programming

    The authors present the fundamentals of programming, explain standard Lua functions, and explain how to take advantage of free Lua community resources. Complete code samples are integrated throughout...

Global site tag (gtag.js) - Google Analytics