官网下载: 速度很慢 http://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz
百度网盘: 链接:https://pan.baidu.com/s/19SIsLntYffMHPQiZywZ5yg 提取码:oycq
tar -zxf LuaJIT-2.1.0-beta3.tar.gz
make && make install
[dahuzi@dahuzi LuaJIT-2.1.0-beta3]$ make && make install
==== Building LuaJIT 2.1.0-beta3 ====
make -C src
make[1]: gcc:命令未找到
make[1]: 进入目录“/home/dahuzi/luajit/LuaJIT-2.1.0-beta3/src”
make[1]: gcc:命令未找到
make[1]: gcc:命令未找到
make[1]: gcc:命令未找到
make[1]: gcc:命令未找到
make[1]: gcc:命令未找到
Makefile:268: *** Unsupported target architecture。 停止。
make[1]: 离开目录“/home/dahuzi/luajit/LuaJIT-2.1.0-beta3/src”
make: *** [default] 错误 2
[dahuzi@dahuzi LuaJIT-2.1.0-beta3]
yum -y install gcc automake autoconf libtool make
make && make install
vim /etc/profile
export LUAJIT_LIB=/usr/local/lib
export LUAJIT_INC=/usr/local/include/luajit-2.1
source /etc/profile
echo “/usr/local/lib” > /etc/ld.so.conf.d/usr_local_luajit_lib.conf
ldconfig
lua -v
Lua 5.1.4 Copyright (C) 1994-2008 Lua.org, PUC-Rio