tce-load -i postgresql-dev pcre-dev cd ngx_openresty-1.9.3.2 edit configure $ngx_prefix = "$prefix"; CC="gcc -mtune=generic -Os -pipe" CXX="g++ -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --group=staff --with-threads --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --pid-path=/var/run/nginx.pid --lock-path=/var/lock/nginx --tapset-prefix=/usr/local --stap-nginx-path=/usr/local --http-log-path=/var/log/nginx/access.log --without-lua51 --with-lua51=/usr/local --with-luajit=/usr/local edit Makefile /usr/local/luajit -> /usr/local -DLUA_DEFAULT_PATH='"/usr/local/lualib/?.lua;/usr/local/lualib/?/init.lua"' -DLUA_DEFAULT_CPATH='"/usr/local/lualib/?.so"' find . -name Makefile -type f -exec sed -i 's/-O2//g' {} \; make sudo make install Configuration summary + using threads + using system PCRE library + using system OpenSSL library + md5: using OpenSSL library + sha1: using OpenSSL library + using system zlib library nginx path prefix: "/usr/local" nginx binary file: "/usr/local/sbin/nginx" nginx configuration prefix: "/usr/local/etc/nginx" nginx configuration file: "/usr/local/etc/nginx/nginx.conf" nginx pid file: "/var/run/nginx.pid" nginx error log file: "/var/log/nginx/error.log" nginx http access log file: "/var/log/nginx/access.log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp"