is not b inary compatible in /etc/nginx/nginx.conf:5 : How can I correct?

656 views
Skip to first unread message

홍영두

unread,
Aug 29, 2018, 9:26:15 PM8/29/18
to ngx-pagespeed-discuss

in : nginx.conf

user www-data;
worker_processes auto;
pid /run/nginx.pid;
include /etc/nginx/modules-enabled/*.conf;
load_module modules/ngx_pagespeed.so;

events {
worker_connections 1024;
# multi_accept on;
}

http {

##
# Basic Settings
##

sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 2;
types_hash_max_size 2048;
server_tokens off;



--------------------------



./configure \
--with-cc-opt='-DNGX_HTTP_HEADERS' \
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--user=www-data \
--group=www-data \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--modules-path=/usr/lib/nginx/modules \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--add-dynamic-module=../incubator-pagespeed-ngx-1.13.35.2-stable --with-compat 




./configure \
--with-cc-opt='-DNGX_HTTP_HEADERS' \
--with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-QD6q1z/nginx-1.15.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' \
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--user=www-data \
--group=www-data \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--modules-path=/usr/lib/nginx/modules \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--add-dynamic-module=../incubator-pagespeed-ngx-1.13.35.2-stable --with-compat 



./configure \
--with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-QD6q1z/nginx-1.15.2=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' \
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--user=www-data \
--group=www-data \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--modules-path=/usr/lib/nginx/modules \
--http-client-body-temp-path=/var/lib/nginx/body \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--add-dynamic-module=../incubator-pagespeed-ngx-1.13.35.2-stable --with-compat 




upper three compile methods are all error.



pagespeed-error.PNG








root@XXXXX:~/nginx-1.15.2# nginx -tnginx: [emerg] module "/usr/share/nginx/modules/ngx_pagespeed.so" is not binary compatible in /etc/nginx/nginx.conf:5nginx: configuration file /etc/nginx/nginx.conf test failed

홍영두

unread,
Aug 29, 2018, 9:50:29 PM8/29/18
to ngx-pagespeed-discuss


2018년 8월 30일 목요일 오전 10시 26분 15초 UTC+9, 홍영두 님의 말:

pagespeed-error2.PNG

홍영두

unread,
Aug 30, 2018, 4:47:39 AM8/30/18
to ngx-pagespeed-discuss


still error



./configure \
--with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-QD6q1z/nginx-1.15.2=. -DNGX_HTTP_HEADERS -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' \
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--user=www-data \
--group=www-data \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--modules-path=/usr/lib/nginx/modules \
--add-dynamic-module=../incubator-pagespeed-ngx-1.13.35.2-stable --with-compat 

---------------->  Aug 30 08:43:29 hpepubcom systemd[1]: Starting A high performance web server and a reverse proxy server...

Aug 30 08:43:29 hpepubcom systemd[1]: Started A high performance web server and a reverse proxy server.
Aug 30 09:23:02 hpepubcom systemd[1]: Reloading A high performance web server and a reverse proxy server.
Aug 30 09:23:02 hpepubcom nginx[13494]: nginx: [emerg] module "/usr/share/nginx/modules/ngx_pagespeed.so" is not binary compatible in /etc/nginx/nginx.conf:5
Aug 30 09:23:02 hpepubcom systemd[1]: nginx.service: Control process exited, code=exited status=1
Aug 30 09:23:02 hpepubcom systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
Aug 30 09:23:48 hpepubcom systemd[1]: Reloading A high performance web server and a reverse proxy server.
Aug 30 09:23:48 hpepubcom systemd[1]: Reloaded A high performance web server and a reverse proxy server.
~
Aug 30 08:43:29 hpepubcom systemd[1]: Starting A high performance web server and a reverse proxy server...
Aug 30 08:43:29 hpepubcom systemd[1]: Started A high performance web server and a reverse proxy server.
Aug 30 09:23:02 hpepubcom systemd[1]: Reloading A high performance web server and a reverse proxy server.
Aug 30 09:23:02 hpepubcom nginx[13494]: nginx: [emerg] module "/usr/share/nginx/modules/ngx_pagespeed.so" is not binary compatible in /etc/nginx/nginx.conf:5
Aug 30 09:23:02 hpepubcom systemd[1]: nginx.service: Control process exited, code=exited status=1
Aug 30 09:23:02 hpepubcom systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
Aug 30 09:23:48 hpepubcom systemd[1]: Reloading A high performance web server and a reverse proxy server.
Aug 30 09:23:48 hpepubcom systemd[1]: Reloaded A high performance web server and a reverse proxy server.













-----------------------------------------
./configure \
--with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-QD6q1z/nginx-1.15.2=. -DNGX_HTTP_HEADERS -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' \
--with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' \
--prefix=/usr/share/nginx \
--conf-path=/etc/nginx/nginx.conf \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=/var/log/nginx/error.log \
--user=www-data \
--group=www-data \
--lock-path=/var/lock/nginx.lock \
--pid-path=/run/nginx.pid \
--modules-path=/usr/lib/nginx/modules \
--add-dynamic-module=../incubator-pagespeed-ngx-1.13.35.2-stable --with-compat 


result --> error

Aug 30 08:43:29 hpepubcom systemd[1]: Starting A high performance web server and a reverse proxy server...
Aug 30 08:43:29 hpepubcom systemd[1]: Started A high performance web server and a reverse proxy server.
Aug 30 09:23:02 hpepubcom systemd[1]: Reloading A high performance web server and a reverse proxy server.
Aug 30 09:23:02 hpepubcom nginx[13494]: nginx: [emerg] module "/usr/share/nginx/modules/ngx_pagespeed.so" is not binary compatible in /etc/nginx/nginx.conf:5
Aug 30 09:23:02 hpepubcom systemd[1]: nginx.service: Control process exited, code=exited status=1
Aug 30 09:23:02 hpepubcom systemd[1]: Reload failed for A high performance web server and a reverse proxy server.
Aug 30 09:23:48 hpepubcom systemd[1]: Reloading A high performance web server and a reverse proxy server.
Aug 30 09:23:48 hpepubcom systemd[1]: Reloaded A high performance web server and a reverse proxy server.
~

2018년 8월 30일 목요일 오전 10시 26분 15초 UTC+9, 홍영두 님의 말:

Yaseen Ahmad

unread,
Sep 26, 2018, 9:36:50 AM9/26/18
to ngx-pagespeed-discuss
I am too having this issue with nginx 1.15.3

Is there any solution you have got? Please share
Reply all
Reply to author
Forward
0 new messages