linux下安装lua

时间:2021-02-18 13:45:26   收藏:0   阅读:0

#!/bin/bash
yum install -y readline-devel ncurses-devel
yum install -y vim make telnet lsof tree rdate ntp gcc gcc-c++ psmisc net-tools \
screen expect sysstat hdparm traceroute zip unzip pcre \
pcre-devel zlib zlib-devel openssl openssl-devel tcping libaio
cd /opt
wget http://www.lua.org/ftp/lua-5.2.0.tar.gz
tar zxf lua-5.2.0.tar.gz
cd lua-5.2.0
sed -i ‘s/\/usr\/local/\/usr\/local\/lua/‘ /opt/lua-5.2.0/Makefile
make && make linux && make install

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!