编译luajit,过程略...
删除luajit lib目录下的so文件
修改 nginx/auto/lib/lua/conf
将有ngx_feature_libs字段后带-lm的后面都加上了-ldl
将 ngx_feature_libs="-R$LUAJIT_LIB -L$LUAJIT_LIB -lluajit-5.1 -lm"
改为 ngx_feature_libs="-R$LUAJIT_LIB -L$LUAJIT_LIB -lluajit-5.1 -lm -ldl"
然后执行
./configure --prefix=/usr/local/nginx ……(此处省略)
--add-module=…/ngx_devel_kit --with-luajit-inc=…/luajit/include/luajit-2.0 --with-luajit-lib=…/luajit/lib
make
make install
其他解决方法
注:早期笔记,仅供参考
原文地址:http://blog.51cto.com/13187574/2107480