LuaRocks
This is LuaRocks, a deployment and management system for Lua modules.
LuaRocks allows you to install Lua modules as self-contained packages called "rocks", which also contain version dependency information. This information is used both at install time, so that when one rock is requested all rocks it depends on are installed as well, and at run time, so that when a module is required, the correct version is loaded. LuaRocks supports both local and remote repositories, and multiple local rocks trees. You can download and install LuaRocks on Unix and Windows.
LuaRocks is free software and uses the same license as Lua 5.1.
有这个东西安装lua的模块就方便了
LuaRocks 0.5.2, a module deployment system for Lua
luarocks - LuaRocks main command-line interface
usage: luarocks [--from=<server> | --only-from=<server>] [--to=<tree>] [VAR=VALUE]... <command> [<argument>]
Variables from the "variables" table of the configuration file
can be overriden with VAR=VALUE assignments.
--from=<server> Fetch rocks/rockspecs from this server
(takes priority over config file)
--only-from=<server> Fetch rocks/rockspecs from this server only
(overrides any entries in the config file)
--to=<tree> Which tree to operate on.
Supported commands:
build Build/compile a rock.
help Help on commands.
install Install a rock.
list Lists currently installed rocks.
make Compile package in current directory using a rockspec.
pack Create a rock, packing sources or binaries.
remove Uninstall a rock.
search Query the LuaRocks servers.
unpack Unpack the contents of a rock.
比如:
我要安装copas 那么 luarocks install copas
但是 lua -l copas还是出错 原因是rocks安装的模块不是在标准的lua 路径下 可以这样解决
lua -l luarocks.require -l copas 搞定
luarocks.require会取代lua标准的require 这样就可以顺利引导模块。
Enjoy Lua!
分享到:
相关推荐
yum安装包yum安装包yum安装包yum安装包yum安装包yum安装包
yum 命令找不到,快速安装yum centos-yumconf-4-4.5.noarch.rpm python-elementtree-1.2.6-5.el4.centos.x86_64.rpm python-sqlite-1.1.7-1.2.1.x86_64.rpm python-urlgrabber-2.9.8-2.noarch.rpm sqlite-3.3.6-2....
# 删除redhat自带的yum包 rpm -qa|grep yum|xargs rpm -e --nodeps # 安装yum软件包 # 注意:单个的安装包可能会依赖其它包(例如yum和yum-fastestmirror会相互依赖),所以我们可以把所有这些包放在一起,用一行...
yum搭建yum搭建yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用yum搭建及应用
linux中使用yum命令的要求: 1. 首先,确定虚拟机连接了iso文件。 然后,挂载光盘到系统目录。 [root@huangdaojin ~]# mount -o loop /dev/cdrom /mnt 2. [root@huangdaojin ~]# vim /etc/yum.repos.d/iso.repo ...
Linux搭建YUM仓库源详解 说明:实验环境是由rchel7.5版本搭建。 一、基于ISO镜像构建YUM本地源 1、首先将光驱ISO镜像连接到虚拟机上,挂载到目录/mnt上。(挂载目录自己可定义) [root@localhost ~]# mount /dev/sr0...
确认在预拉取yum包的机子关于网络的各项服务正常,拉取的过程对网路的要求挺高,今天用50M宽带拉取大概5个多小时。另在拉取的机子上配置好阿里的base源和epel源。 1.修改yum源仓库 [root@mini2 /]# rm -rf /etc/yum....
RedHat Enterprise Linux 6.4使用yum安装出现This system is not registered to Red Hat Subscription Management问题,但是发现激活Redhat的yum功能需要收费,所以就更改为CentOS的yum包了。 综合多份文档,本人...
网络yum源的简单配置方法,一般安装好redhat后,不能注册的话,不能使用系统自带的yum源。但是我们可以自己配置yum源来解决这一问题。下面介绍下redhat配置163yum源。
centos6_64 yum配置,一键搞定.centos6_64 yum配置,一键搞定
linux下yum的使用,和大家一起分享
yum命令的使用总结:手动添加了yum 源,安装yum-plugin-fastestmirror(自动挑选快的镜像站)等
卸载yum及python rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps rpm -qa|grep yum|xargs rpm -ev --allmatches --nodeps 安装 rpm -Uvh --replacepkgs python*.rpm rpm -Uvh --replacepkgs libxml2-...
红帽配置 yum源本地文件 local.repo
Yum Yum
centos8 yum包 , yum放进/etc/yum.repos.d, yum makecache
CentOS6.9安装的yum源 一不小心删除yum源后重新安装的文件
[local_server] (库名称) name=This is a local repo (名称描述) ...baseurl=file:///mnt/cdrom (yum源目录,源地址) enabled=1(是否启用该yum源,0为禁用) gpgcheck=0(检查GPG-KEY,0为不检查,1为检查)
centos官网上最新版本的Yum安装包-包含了yum-*.rpm、yum-metadata-parser-*.rpm、yum-plugin-fastestmirror-*.rpm,方便没有梯子的同学。
内含需要安装的rpm包和修改后的yum源配置。 python-urlgrabber-3.9.1-11.el6.noarch.rpm yum-3.2.29-40.el6.centos.noarch.rpm yum-metadata-parser-1.1.2-16.el6.i686.rpm yum-metadata-parser-1.1.2-16.el6.x86_64...