Learn about Centmin Mod LEMP Stack today
Register Now

error when installing nginx Centos 6 32 bit

Discussion in 'Bug Reports' started by dorobo, Jan 10, 2016.

  1. dorobo

    dorobo Active Member

    420
    104
    43
    Jun 6, 2014
    Ratings:
    +162
    Local Time:
    9:20 PM
    latest
    latest
    ramnode 256MB premium openvz
    CentOS 6 32 bit

    centminmod 123.09beta01

    installed using ./centmin.sh install

    from centminmod_ngxinstalltime_xx.log


    Code:
    checking for OS
     + Linux 2.6.32-042stab092.3 i686
    checking for C compiler ... found
     + using Clang C compiler
     + clang version: 3.4.2 (tags/RELEASE_34/dot2-final)
    checking for --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib" ... not found
    ./configure: error: the invalid value in --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib"
    
    make: *** No rule to make target `build', needed by `default'.  Stop.
    
    real	0m0.001s
    user	0m0.001s
    sys	0m0.000s
    
    strip nginx binary...
    ls: cannot access objs/nginx: No such file or directory
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:20 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    need the full nginx upgrade log from /etc/centminlogs/* or install log

    post to pastebin.com or gist.github.com :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:20 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    My RamNode 128MB OpenVZ with CentOS 6 32bit
    Code:
     uname -m
    i686
    
    free -m
                 total       used       free     shared    buffers     cached
    Mem:           128         84         43         55          0         29
    -/+ buffers/cache:         54         73
    Swap:          128         29         98
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:20 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    hmm did a recompile on 128MB RamNode VPS and something has changed
    Code:
    /svr-setup/nginx-1.9.9
    nginx configure options (alternate ordering):
    ./configure --with-ld-opt=-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib --with-cc-opt=-m32 -march=generic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-ipv6  --with-http_stub_status_module --with-http_secure_link_module --with-openssl-opt=enable-tlsext --add-module=../nginx-module-vts --with-libatomic --with-threads --with-stream --with-stream_ssl_module --with-http_gzip_static_module --add-module=../ngx_pagespeed-release-1.9.32.11-beta --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_geoip_module --with-http_realip_module --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.2.19 --add-module=../set-misc-nginx-module-0.29 --add-module=../echo-nginx-module-0.58 --add-module=../redis2-nginx-module-0.12 --add-module=../ngx_http_redis-0.3.7 --add-module=../lua-nginx-module-0.9.20 --add-module=../lua-upstream-nginx-module-0.04 --add-module=../lua-upstream-cache-nginx-module-0.1.1 --add-module=../nginx_upstream_check_module-0.3.0 --add-module=../openresty-memc-nginx-module-4f6f78f --add-module=../openresty-srcache-nginx-module-ffa9ab7 --add-module=../headers-more-nginx-module-0.29 --with-pcre=../pcre-8.38 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.2.5
    checking for OS
    + Linux 2.6.32-042stab094.8 i686
    checking for C compiler ... found
    + using Clang C compiler
    + clang version: 3.4.2 (tags/RELEASE_34/dot2-final)
    checking for --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib" ... not found
    ./configure: error: the invalid value in --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib"
    
    
    Sat Jan  9 18:16:57 PST 2016
    Error: 1, Nginx configure failed
    
    Total Nginx Upgrade Time: 176.463164650 seconds
     
  5. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:20 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    could be an nginx module conflict due to a nginx module update maybe nginx vhost traffic module further up from above error i see
    Code:
    cp cjson.so //usr/local/lib/lua/5.1
    chmod 755 //usr/local/lib/lua/5.1/cjson.so
    Saved working directory and index state WIP on master: c333d5c * Feature: added support for implementing traffic limit. * Bugfix: fixed issues/28 that can't use control functionality if location has more than a segment.
    HEAD is now at c333d5c * Feature: added support for implementing traffic limit.
    From https://github.com/vozlt/nginx-module-vts
    + c333d5c...995c20a master     -> origin/master  (forced update)
    * [new tag]         v0.1.8     -> v0.1.8
    From https://github.com/vozlt/nginx-module-vts
    * [new tag]         v0.1.7     -> v0.1.7
    Auto-merging Changes
    CONFLICT (content): Merge conflict in Changes
    Auto-merging README.md
    CONFLICT (content): Merge conflict in README.md
    Auto-merging src/ngx_http_vhost_traffic_status_module.c
    Automatic merge failed; fix conflicts and then commit the result.
    /usr/bin/pscontrol already exists
    commits from nginx vhost traffic module Commits · vozlt/nginx-module-vts · GitHub

    edit: okay not related though i fixed the nginx-module-vts conflicts
    Code:
    chmod 755 //usr/local/lib/lua/5.1/cjson.so
    Initialized empty Git repository in /svr-setup/nginx-module-vts/.git/
    /usr/bin/pscontrol already exists
    -rw-r--r-- 1 root root 6.1K Aug 15 00:54 /usr/local/nginx/conf/pagespeed.conf
    -rw-r--r-- 1 root root 668 Nov 24  2014 /usr/local/nginx/conf/pagespeedhandler.conf
    -rwx------ 1 root root 2.6K Oct 25  2014 /usr/bin/pscontrol
    /usr/lib/libatomic_ops.a found
    
    Check existing server string:
    static char ngx_http_server_string[] = "Server: nginx" CRLF;
    
    Change server string to nginx centminmod
    
    689:    gcf->country = GeoIP_open((char *) value[1].data, GEOIP_STANDARD);
    744:    gcf->org = GeoIP_open((char *) value[1].data, GEOIP_STANDARD);
    805:    gcf->city = GeoIP_open((char *) value[1].data, GEOIP_STANDARD);
      -m32                                  [enabled]
      -m80387                               [enabled]
      -m96bit-long-double                   [enabled]
      -maes                                 [enabled]
      -malign-stringops                     [enabled]
      -march=                               core2
      -mavx                                 [enabled]
      -mcx16                                [enabled]
      -mfancy-math-387                      [enabled]
      -mfp-ret-in-387                       [enabled]
      -mfused-madd                          [enabled]
      -mglibc                               [enabled]
      -mhard-float                          [enabled]
      -mieee-fp                             [enabled]
      -mpclmul                              [enabled]
      -mpopcnt                              [enabled]
      -mpush-args                           [enabled]
      -mred-zone                            [enabled]
      -msahf                                [enabled]
      -msse                                 [enabled]
      -msse2                                [enabled]
      -msse3                                [enabled]
      -msse4                                [enabled]
      -msse4.1                              [enabled]
      -msse4.2                              [enabled]
      -mssse3                               [enabled]
      -mstackrealign                        [enabled]
      -mtls-direct-seg-refs                 [enabled]
      -mtune=                               generic
    /svr-setup/nginx-1.9.9
    nginx configure options (alternate ordering):
    ./configure --with-ld-opt=-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib --with-cc-opt=-m32 -march=generic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wno-sign-compare -Wno-string-plus-int -Wno-deprecated-declarations -Wno-unused-parameter -Wno-unused-const-variable -Wno-conditional-uninitialized -Wno-mismatched-tags -Wno-c++11-extensions -Wno-sometimes-uninitialized -Wno-parentheses-equality -Wno-tautological-compare -Wno-self-assign -Wno-deprecated-register -Wno-deprecated -Wno-invalid-source-encoding -Wno-pointer-sign -Wno-parentheses -Wno-enum-conversion --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --with-ipv6  --with-http_stub_status_module --with-http_secure_link_module --with-openssl-opt=enable-tlsext --add-module=../nginx-module-vts --with-libatomic --with-threads --with-stream --with-stream_ssl_module --with-http_gzip_static_module --add-module=../ngx_pagespeed-release-1.9.32.11-beta --with-http_sub_module --with-http_addition_module --with-http_image_filter_module --with-http_geoip_module --with-http_realip_module --add-module=../nginx-accesskey-2.0.3 --add-module=../nginx-http-concat-master --add-module=../ngx-fancyindex-ngx-fancyindex --add-module=../ngx_cache_purge-2.3 --add-module=../ngx_devel_kit-0.2.19 --add-module=../set-misc-nginx-module-0.29 --add-module=../echo-nginx-module-0.58 --add-module=../redis2-nginx-module-0.12 --add-module=../ngx_http_redis-0.3.7 --add-module=../lua-nginx-module-0.9.20 --add-module=../lua-upstream-nginx-module-0.04 --add-module=../lua-upstream-cache-nginx-module-0.1.1 --add-module=../nginx_upstream_check_module-0.3.0 --add-module=../openresty-memc-nginx-module-4f6f78f --add-module=../openresty-srcache-nginx-module-ffa9ab7 --add-module=../headers-more-nginx-module-0.29 --with-pcre=../pcre-8.38 --with-pcre-jit --with-http_ssl_module --with-http_v2_module --with-openssl=../libressl-2.2.5
    checking for OS
    + Linux 2.6.32-042stab094.8 i686
    checking for C compiler ... found
    + using Clang C compiler
    + clang version: 3.4.2 (tags/RELEASE_34/dot2-final)
    checking for --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib" ... not found
    ./configure: error: the invalid value in --with-ld-opt="-lrt -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/lib"
    
    
    Sat Jan  9 18:34:28 PST 2016
    Error: 1, Nginx configure failed
    
    Total Nginx Upgrade Time: 139.471335305 seconds
     
    Last edited: Jan 10, 2016
  6. eva2000

    eva2000 Administrator Staff Member

    53,178
    12,112
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,647
    Local Time:
    11:20 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    okay fixed it History for inc/nginx_configure.inc - centminmod/centminmod · GitHub it's problem specific to 123.09beta01 as i changed compiler options to using march instead of mtune in 123.08stable and some intel processors might be older or not support march so RamNode's cpus might be one of those for 32bit while 64bit is fine for some reason.