cd src && make linux make[1]: Entering directory '/usr/local/src/lua-5.1.5/src' make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" make[2]: Entering directory '/usr/local/src/lua-5.1.5/src' make[2]: Nothing to be donefor'all'. make[2]: Leaving directory '/usr/local/src/lua-5.1.5/src' make[1]: Leaving directory '/usr/local/src/lua-5.1.5/src'
$ wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz $ tar zxpf luarocks-2.2.2.tar.gz $ cd luarocks-2.2.2 $ ./configure $ make bootstrap
二、安装mongorover模块
1
$ luarocks install mongorover
安装时,报以下错误信息
Error: Could not find expected file libbson-1.0/bson.h, or libbson-1.0/bson.h for LIBMONGOC – you may have to install LIBMONGOC in your system and/or pass LIBMONGOC_DIR or LIBMONGOC_INCDIR to the luarocks command. Example: luarocks install mongorover LIBMONGOC_DIR=/usr/local
$ wget https://github.com/mongodb/libbson/releases/download/1.1.10/libbson-1.1.10.tar.gz $ tar -xzf libbson-1.1.10.tar.gz $ cd libbson-1.1.10/ $ ./configure $ make $ make install $ ln -s /usr/include/libbson-1.0/ /usr/local/libbson-1.0
再执行,安装mongorover模块,又报以下错误
Error: Could not find expected file libmongoc-1.0/mongoc.h, or libmongoc-1.0/mongoc.h for LIBMONGOC – you may have to install LIBMONGOC in your system and/or pass LIBMONGOC_DIR or LIBMONGOC_INCDIR to the luarocks command. Example: luarocks install mongorover LIBMONGOC_DIR=/usr/local
./configure --prefix=/usr/local/nginx --with-ld-opt=-Wl,-rpath,$LUAJIT_LIB --add-module=/usr/local/ngx_devel_kit --add-module=/usr/local/echo-nginx-module --add-module=/usr/local/lua-nginx-module make -j2 make install
/usr/local/nginx/sbin/ngxin -s reload /usr/local/nginx/sbin/nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory