linux下安装lua

#!/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

猜你喜欢

转载自blog.csdn.net/weixin_42324463/article/details/121448422