mirror of
https://github.com/minoplhy/scriptbox.git
synced 2024-12-05 01:46:57 +00:00
nginx_build_script : somehow unslashed newline cause Luajit configure not passing
This commit is contained in:
parent
46e4a5f9c9
commit
dfa7a919e5
@ -56,13 +56,13 @@ cmake --build . --config Release --target brotlienc
|
|||||||
|
|
||||||
mkdir $HOMEDIRECTORY/nginx-lua && cd $HOMEDIRECTORY/nginx-lua
|
mkdir $HOMEDIRECTORY/nginx-lua && cd $HOMEDIRECTORY/nginx-lua
|
||||||
mkdir -p /opt/nginx-lua-module/
|
mkdir -p /opt/nginx-lua-module/
|
||||||
git clone https://github.com/openresty/lua-resty-core
|
git clone https://github.com/openresty/lua-resty-core $HOMEDIRECTORY/nginx-lua/lua-resty-core
|
||||||
git clone https://github.com/openresty/lua-resty-lrucache
|
git clone https://github.com/openresty/lua-resty-lrucache $HOMEDIRECTORY/nginx-lua/lua-resty-lrucache
|
||||||
git clone https://github.com/openresty/luajit2
|
git clone https://github.com/openresty/luajit2 $HOMEDIRECTORY/nginx-lua/luajit2
|
||||||
|
|
||||||
cd luajit2 && make install PREFIX=/opt/nginx-lua-module/luajit2 && cd ..
|
cd $HOMEDIRECTORY/nginx-lua/luajit2 && make && make install PREFIX=/opt/nginx-lua-module/luajit2
|
||||||
cd lua-resty-core && make install PREFIX=/opt/nginx-lua-module/ && cd ..
|
cd $HOMEDIRECTORY/nginx-lua/lua-resty-core && make install PREFIX=/opt/nginx-lua-module/
|
||||||
cd lua-resty-lrucache && make install PREFIX=/opt/nginx-lua-module/ && cd ..
|
cd $HOMEDIRECTORY/nginx-lua/lua-resty-lrucache && make install PREFIX=/opt/nginx-lua-module/
|
||||||
|
|
||||||
export LUAJIT_LIB=/opt/nginx-lua-module/luajit2/lib
|
export LUAJIT_LIB=/opt/nginx-lua-module/luajit2/lib
|
||||||
export LUAJIT_INC=/opt/nginx-lua-module/luajit2/include/luajit-2.1
|
export LUAJIT_INC=/opt/nginx-lua-module/luajit2/include/luajit-2.1
|
||||||
@ -76,7 +76,7 @@ cd $HOMEDIRECTORY/nginx
|
|||||||
./auto/configure \
|
./auto/configure \
|
||||||
--with-cc=c++ \
|
--with-cc=c++ \
|
||||||
--with-cc-opt="-I../boringssl/include -x c" \
|
--with-cc-opt="-I../boringssl/include -x c" \
|
||||||
--with-ld-opt="-L../boringssl/build/ssl -L../boringssl/build/crypto" \
|
--with-ld-opt="-L../boringssl/build/ssl -L../boringssl/build/crypto -Wl,-rpath,$LUAJIT_LIB" \
|
||||||
--prefix=/usr/share/nginx \
|
--prefix=/usr/share/nginx \
|
||||||
--conf-path=/etc/nginx/nginx.conf \
|
--conf-path=/etc/nginx/nginx.conf \
|
||||||
--http-log-path=/var/log/nginx/access.log \
|
--http-log-path=/var/log/nginx/access.log \
|
||||||
|
Loading…
Reference in New Issue
Block a user