Discover Centmin Mod today
Register Now

Centos 7.6 can not install nginx

Discussion in 'Bug Reports' started by imsoho99, Dec 5, 2018.

  1. imsoho99

    imsoho99 New Member

    4
    1
    3
    May 5, 2018
    Ratings:
    +1
    Local Time:
    2:33 PM
    Nginx
    MariaDB 10
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit 7.6
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: error
    • PHP Version Installed: 7.2.9
    • MariaDB MySQL Version Installed: 10.2.xx
    Change server string to nginx centminmod

    NGX_MAX_ERROR_STR value
    #define NGX_MAX_ERROR_STR 2048

    net.ipv4.tcp_fastopen = 3
    TCPOFOQueue TCPOFODrop TCPOFOMerge TCPChallengeACK TCPSYNChallenge TCPFastOpenActive
    1503 0 0 0 0 0
    689: gcf->country = GeoIP_open((char *) value[1].data, GEOIP_MEMORY_CACHE);
    744: gcf->org = GeoIP_open((char *) value[1].data, GEOIP_MEMORY_CACHE);
    805: gcf->city = GeoIP_open((char *) value[1].data, GEOIP_MEMORY_CACHE);
    CLANG_CCOPT=""
    Error: Nothing to do

    real 0m2.818s
    user 0m2.584s
    sys 0m0.231s
    Error: Nothing to do

    real 0m4.387s
    user 0m4.132s
    sys 0m0.249s

    inc/brotli.inc: line 135: /opt/rh/devtoolset-7/root/usr/bin/gcc: No such file or directory
    inc/brotli.inc: line 136: /opt/rh/devtoolset-7/root/usr/bin/g++: No such file or directory
    inc/nginx_configure.inc: line 2795: /opt/rh/devtoolset-7/enable: No such file or directory
    /bin/gcc
    /bin/g++
    -m64 [enabled]
    -m80387 [enabled]
    -m96bit-long-double [enabled]
    -mabm [enabled]
    -madx [enabled]
    -maes [enabled]
    -malign-stringops [enabled]
    -march= core-avx2
    -mavx [enabled]
    -mavx2 [enabled]
    -mbmi [enabled]
    -mbmi2 [enabled]
    -mcx16 [enabled]
    -mf16c [enabled]
    -mfancy-math-387 [enabled]
    -mfentry [enabled]
    -mfma [enabled]
    -mfp-ret-in-387 [enabled]
    -mfsgsbase [enabled]
    -mfxsr [enabled]
    -mglibc [enabled]
    -mhard-float [enabled]
    -mhle [enabled]
    -mieee-fp [enabled]
    -mlong-double-80 [enabled]
    -mlzcnt [enabled]
    -mmovbe [enabled]
    -mpclmul [enabled]
    -mpopcnt [enabled]
    -mprfchw [enabled]
    -mpush-args [enabled]
    -mrdrnd [enabled]
    -mrdseed [enabled]
    -mred-zone [enabled]
    -mrtm [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
    -mxsave [enabled]
    -mxsaveopt [enabled]
    /svr-setup/nginx-1.15.7


    dynamic module directory at /usr/local/nginx/modules
    ls: cannot access /usr/local/nginx/modules: No such file or directory

    nginx configure options (alternate ordering):
    ./configure --with-ld-opt="-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/lib -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib" --with-cc-opt="-I/usr/local/zlib-cf/include -I/usr/local/include -m64 -march=native -DTCP_FASTOPEN=23 -g -O3 -fstack-protector-strong -flto -fuse-ld=gold --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wimplicit-fallthrough=0 -fcode-hoisting -Wp,-D_FORTIFY_SOURCE=2 -gsplit-dwarf" --sbin-path=/usr/local/sbin/nginx --conf-path=/usr/local/nginx/conf/nginx.conf --build=041218-163053 --with-compat --with-http_stub_status_module --with-http_secure_link_module --with-libatomic --with-http_gzip_static_module --with-http_sub_module --with-http_addition_module --with-http_image_filter_module=dynamic --with-http_geoip_module --with-stream_geoip_module --with-stream_realip_module --with-stream_ssl_preread_module --with-threads --with-stream --with-stream_ssl_module --with-http_realip_module --add-dynamic-module=../ngx-fancyindex-0.4.2 --add-module=../ngx_cache_purge-2.5 --add-dynamic-module=../ngx_devel_kit-0.3.0 --add-dynamic-module=../set-misc-nginx-module-0.32 --add-dynamic-module=../echo-nginx-module-0.61 --add-module=../redis2-nginx-module-0.15 --add-module=../ngx_http_redis-0.3.7 --add-module=../memc-nginx-module-0.18 --add-module=../srcache-nginx-module-0.31 --add-dynamic-module=../headers-more-nginx-module-0.33 --with-pcre-jit --with-zlib=../zlib-cloudflare-1.3.0 --with-http_ssl_module --with-http_v2_module --with-openssl=../openssl-1.1.1a --with-openssl-opt="enable-ec_nistp_64_gcc_128 enable-tls1_3"
    checking for OS
    + Linux 4.11.8-1.el7.elrepo.x86_64 x86_64
    checking for C compiler ... found
    + using GNU C compiler
    + gcc version: 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)
    checking for gcc -pipe switch ... found
    checking for --with-ld-opt="-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/lib -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib" ... not found
    ./configure: error: the invalid value in --with-ld-opt="-Wl,-E -L/usr/local/zlib-cf/lib -L/usr/local/lib -ljemalloc -Wl,-z,relro -Wl,-rpath,/usr/local/zlib-cf/lib:/usr/local/lib"


    Tue Dec 4 16:30:53 UTC 2018
    Success: Nginx configure ok

    _ _ _ __ __ _
    | \ | | __ _ (_) _ __ __ __ | \/ | __ _ | | __ ___
    | \| | / _` || || '_ \ \ \/ / | |\/| | / _` || |/ // _ \
    | |\ || (_| || || | | | > < | | | || (_| || <| __/
    |_| \_| \__, ||_||_| |_|/_/\_\ |_| |_| \__,_||_|\_\\___|
    |___/
    make: *** No rule to make target `build', needed by `default'. Stop.

    real 0m0.002s
    user 0m0.001s
    sys 0m0.000s

    Tue Dec 4 16:30:53 UTC 2018
    Error: 2, Nginx make failed

    report errors on the forums at community.centminmod.com/forums/8/
     
  2. eva2000

    eva2000 Administrator Staff Member

    53,277
    12,117
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,655
    Local Time:
    4:33 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    For posting code or output from commands or log files to keep the formatting, you might want to use CODE tags for code How to use forum BBCODE code tags :)

    Is this fresh initial Centmin Mod install with CentOS 7.6 or you updated existing Centmin Mod install to CentOS 7.6 and now can't update nginx via centmin.sh menu option 4 ? If it' the former, need install log info or if it's latter, need nginx upgrade log info.

    Troubleshooting Initial Install



    To troubleshoot initial installation, you need to check the initial install log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the initial install log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    Example for 123.09beta01 and newer list /root/centminlogs files in date ascending order and grep for installer_*
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    

    example output returns install log at /root/centminlogs both a the full log and minimal log (smaller in size with some stuff filtered out)
    Code (Text):
    ls -lahrt /root/centminlogs | grep installer_*
    -rw-r--r-- 1 root root 4.3M Jul 12 09:06 installer_120718-083445.log
    -rw-r--r-- 1 root root 826K Jul 12 10:20 installer_120718-083445_minimal.log
    


    Example for 123.08stable list /root/centminlogs files in date ascending order and grep for install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    

    example output returns install log at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    Code (Text):
    ls -lahrt /root/centminlogs | grep install.log
    -rw-r--r--  1 root root 2.2M Oct 11 01:40 centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    in SSH use cat to ouput contents of /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log. Clear your SSH client window/buffer so only output is the contents of the file

    for 123.08stable
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-112321_install.log
    

    for 123.09beta01 and newer
    Code (Text):
    cat /root/centminlogs/installer_120718-083445_minimal.log
    


    Then copy and paste into Pastebin.com or Gists entry. If your SSH window scroll buffer isn't that large to get the whole contents of the install log, you can download file manually and copy and paste contents. But makes sure it's sanitised version of the contents of the initial install log as outlined at How to troubleshoot Centmin Mod initial install issues

    If it's latter and nginx upgrade issue, to troubleshoot you need to check the full nginx upgrade log at /root/centminlogs and instructions under Sharing logs and errors heading for using Pastebin.com or Gists to share a sanitised version of the contents of the nginx_upgrade.log log. You can see full details at How to troubleshoot Centmin Mod initial install issues

    also what's output of
    Code (Text):
    nginx -t

    when you run centmin.sh menu option 4 there's a nginx upgrade log timestamped at /root/centminlogs

    if you type this command it lists all logs in date ascending order so latest log at bottom
    Code (Text):
    ls -lArt /root/centminlogs

    so copy the entire contents of latest nginx_upgrade log to gist.github.com or pastebin.com

    you can use grep to filter the logs, i.e. look for nginx_upgrade in log name
    Code (Text):
    ls -lahrt /root/centminlogs/ | grep nginx_upgrade
    -rw-r--r--  1 root root 3.2M Oct 11 15:55 centminmod_1.2.3-eva2000.09.001_111016-155345_nginx_upgrade.log
    -rw-r--r--  1 root root 672K Oct 11 22:06 centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    So the last nginx upgrade log was named centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log and located at /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then use cat command to output the contents of that log

    clear your ssh window buffer/screen and type
    Code (Text):
    cat /root/centminlogs/centminmod_1.2.3-eva2000.09.001_111016-220515_nginx_upgrade.log

    then select and copy and paste output to pastebin.com or gist.github.com file to share. If your SSH client's scroll buffer isn't large enough using cat might not output the entire log file contents, so you may need to download the log and use local text editor to open and copy and paste.

    so only need content of one specific log, in this case most recent nginx_upgrade.log log