SPDY compilation fail - Warnings
DenisTRUFFAUT
nginx-forum at nginx.us
Thu Jul 26 03:52:20 UTC 2012
Hi,
SPDY compilation fails for me, due to some warnings.
The compilation script which fails could be seen here, syntaxically
colored :
http://pastebin.com/wkqA4d8g
Or here, in a raw version :
# Nginx SPDY Compilation Fail
# -------------------------------
NGINX_VERSION='1.3.2'
NGINX_ECHO_MODULE_VERSION='0.39'
sudo mkdir -p /var/log/nginx
sudo mkdir -p /tmp/nginx/{client,proxy,fastcgi,cache}
sudo chown www-data:www-data /tmp/nginx/{client,proxy,fastcgi,cache}
sudo ps -C nginx -o pid='' | xargs sudo kill -9
cd /usr/local/src
sudo wget -O nginx-$NGINX_ECHO_MODULE_VERSION.tar.gz
"https://github.com/agentzh/echo-nginx-module/tarball/v$NGINX_ECHO_MODULE_VERSION"
sudo tar -zxvf nginx-$NGINX_ECHO_MODULE_VERSION.tar.gz
sudo rm -fr nginx-$NGINX_ECHO_MODULE_VERSION.tar.gz
sudo mv agentzh-echo* nginx_echo_module
cd /usr/local/src
sudo wget -O nginx-$NGINX_VERSION.tar.gz
"http://nginx.org/download/nginx-$NGINX_VERSION.tar.gz"
sudo tar -zxvf nginx-$NGINX_VERSION.tar.gz
sudo rm -fr nginx-$NGINX_VERSION.tar.gz
cd nginx-$NGINX_VERSION
# Apply SPDY
sudo wget -O patch.spdy.txt
"http://nginx.org/patches/spdy/patch.spdy.txt"
sudo patch -p0 < patch.spdy.txt
# Remove NginX Version in headers
grep -risl 'Server: nginx' * | xargs sudo sed -i -e 's/Server:
nginx/Server: /g'
grep -risl 'server: %V' * | xargs sudo sed -i -e 's/server: %V/server:
/g'
sudo make clean
# --with-ld-opt='-ltcmalloc_minimal' is optional, but recommended
sudo ./configure --with-cc-opt='-O3 -unroll2 -march=native' \
--with-ld-opt='-ltcmalloc_minimal' \
--error-log-path=/var/log/nginx/error.log \
--add-module=/usr/local/src/nginx_echo_module \
--conf-path=/usr/local/nginx/nginx.conf \
--group=www-data \
--http-client-body-temp-path=/tmp/nginx/client \
--http-fastcgi-temp-path=/tmp/nginx/fastcgi \
--http-log-path=/var/log/nginx/access.log \
--http-proxy-temp-path=/tmp/nginx/proxy \
--lock-path=/var/lock/nginx.lock--prefix=/usr/local/nginx \
--pid-path=/var/run/nginx.pid \
--user=www-data \
--with-http_geoip_module \
--with-http_gzip_static_module \
--with-http_realip_module \
--with-http_ssl_module \
--with-http_stub_status_module \
--with-ipv6 \
--with-http_ssl_module \
--without-http_autoindex_module \
--without-http_auth_basic_module \
--without-http_browser_module \
--without-http_empty_gif_module \
--without-http_scgi_module \
--without-http_split_clients_module \
--without-http_ssi_module \
--without-http_uwsgi_module \
--without-mail_imap_module \
--without-mail_pop3_module \
--without-mail_smtp_module \
&& sudo make && sudo make install && cd /usr/local/src
sudo rm -fr nginx-$NGINX_VERSION
sudo rm -fr nginx_echo_module
# -------------------------------
# Compile without SPDY Patch : it works
# Compile with SPDY Patch : it fails
# ---------------------------------
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228980,228980#msg-228980
More information about the nginx
mailing list