Join the community today
Become a Member

wget fail to upgrade due to gcc compiler missing

Discussion in 'Install & Upgrades or Pre-Install Questions' started by pamamolf, Sep 1, 2016.

  1. pamamolf

    pamamolf Well-Known Member

    2,725
    243
    63
    May 31, 2014
    Ratings:
    +434
    Local Time:
    4:14 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi :)

    I just try to install latest Centminmod on Centos 7 64bit using ./centmin.sh command and i got this:

    Code:
    Download done.
    wget-1.18.tar.gz valid file.
    
    configure: configuring for GNU Wget 1.18
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking whether make supports nested variables... yes
    checking build system type... x86_64-pc-linux-gnu
    checking host system type... x86_64-pc-linux-gnu
    checking whether make supports nested variables... (cached) yes
    checking for gcc... no
    checking for cc... no
    checking for cl.exe... no
    configure: error: in `/svr-setup/wget-1.18':
    configure: error: no acceptable C compiler found in $PATH
    See `config.log' for more details
    There seems to be no Makefile in this directory.
    You must run ./configure before running 'make'.
    make: *** [abort-due-to-no-makefile] Error 1
    There seems to be no Makefile in this directory.
    You must run ./configure before running 'make'.
    make: *** [abort-due-to-no-makefile] Error 1
    
    --------------------------------------------------------
    ldconfig -p | grep libpcre.so.1
            libpcre.so.1 (libc6,x86-64) => /lib64/libpcre.so.1
    
    ldd /bin/wget
            linux-vdso.so.1 =>  (0x00007ffff3ba7000)
            libssl.so.10 => /lib64/libssl.so.10 (0x00007f8064ca0000)
            libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f80648b8000)
            libz.so.1 => /lib64/libz.so.1 (0x00007f80646a1000)
            libdl.so.2 => /lib64/libdl.so.2 (0x00007f806449d000)
            libidn.so.11 => /lib64/libidn.so.11 (0x00007f806426a000)
            libuuid.so.1 => /lib64/libuuid.so.1 (0x00007f8064064000)
            libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f8063e03000)
            libc.so.6 => /lib64/libc.so.6 (0x00007f8063a41000)
            libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f80637f4000)
            libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f806350f000)
            libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f806330b000)
            libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f80630d8000)
            /lib64/ld-linux-x86-64.so.2 (0x00007f8064f13000)
            libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f8062ebc000)
            libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f8062cac000)
            libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f8062aa8000)
            libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f806288e000)
            libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f8062668000)
            liblzma.so.5 => /lib64/liblzma.so.5 (0x00007f8062443000)
    --------------------------------------------------------
    wget -V
    GNU Wget 1.14 built on linux-gnu.
    
    +digest +https +ipv6 +iri +large-file +nls +ntlm +opie +ssl/openssl
    
    Wgetrc:
        /etc/wgetrc (system)
    Locale: /usr/share/locale
    Compile: gcc -DHAVE_CONFIG_H -DSYSTEM_WGETRC="/etc/wgetrc"
        -DLOCALEDIR="/usr/share/locale" -I. -I../lib -I../lib -O2 -g -pipe
        -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong
        --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic
    Link: gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
        -fstack-protector-strong --param=ssp-buffer-size=4
        -grecord-gcc-switches -m64 -mtune=generic -lssl -lcrypto
        /usr/lib64/libssl.so /usr/lib64/libcrypto.so /usr/lib64/libz.so
        -ldl -lz -lz -lidn -luuid -lpcre ftp-opie.o openssl.o http-ntlm.o
        ../lib/libgnu.a
    
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later
    <http://www.gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    
    Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
    Please send bug reports and questions to <bug-wget@gnu.org>.
    --------------------------------------------------------
    wget 1.18 failed to update, still using system wget
    --------------------------------------------------------
    It seems gcc compiler missing but i thought that was a Centminmod routine that was installing it at the startup?

    Code:
    configure: error: in `/svr-setup/wget-1.18':
    configure: error: no acceptable C compiler found in $PATH
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,181
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    11:14 PM
    Nginx 1.13.x
    MariaDB 5.5
    web host ? virtualization environment ? Centmin Mod install method ?
     
  3. pamamolf

    pamamolf Well-Known Member

    2,725
    243
    63
    May 31, 2014
    Ratings:
    +434
    Local Time:
    4:14 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ovh with original kernel selected as an option and dedicated server and install method manual:

    Code:
    cd /usr/local/src
    wget https://github.com/centminmod/centminmod/archive/123.09beta01.zip
    unzip 123.09beta01.zip
    cd centminmod-123.09beta01
    chmod +x centmin.sh
    ./centmin.sh
    
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,181
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    11:14 PM
    Nginx 1.13.x
    MariaDB 5.5
    when was last time this method of install worked for you ? maybe reload centos OS and try again ?

    or have you tried curl install method ?
    Code (Text):
    yum -y update; curl -O https://centminmod.com/betainstaller.sh && chmod 0700 betainstaller.sh && bash betainstaller.sh
     
  5. pamamolf

    pamamolf Well-Known Member

    2,725
    243
    63
    May 31, 2014
    Ratings:
    +434
    Local Time:
    4:14 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Last installation was a month about before and i didn't had any issue....

    Don't know a reinstallation how it will help for this .....

    I prefer this method as i can see such errors or if something is wrong.....

    Ok i can try what you recommend me now and i will report back....

    But it will be great to get a fix for it as i always use this menu based setup :)

    Do i have to run Curl installation command from: /usr/local/src ?

    Thanks
     
    Last edited: Sep 1, 2016
  6. pamamolf

    pamamolf Well-Known Member

    2,725
    243
    63
    May 31, 2014
    Ratings:
    +434
    Local Time:
    4:14 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    I just check and was 50 days ago that i was use it without any issues and it was on the same datacenter OVH Canada using a dedicated server :)
     
  7. pamamolf

    pamamolf Well-Known Member

    2,725
    243
    63
    May 31, 2014
    Ratings:
    +434
    Local Time:
    4:14 PM
    Nginx-1.13.x
    MariaDB 10.1.x
    Ok i just test the one line installer and it works :)

    I am wondering if by default Setup Centmin Mod Github Environment as i try to run this and at the end when i enter 4 (exit) i got this:

    Code:
    shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
    sh: centmin.sh: No such file or directory
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,181
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    11:14 PM
    Nginx 1.13.x
    MariaDB 5.5
    you didn't complete the process from centmin.sh menu option 23 submenu option 1, from Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS

    but curl install method automatically sets up Git environment so no need to run centmin.sh menu option 23 submenu option 1
     
    • Like Like x 1
  9. eva2000

    eva2000 Administrator Staff Member

    30,181
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    11:14 PM
    Nginx 1.13.x
    MariaDB 5.5
    no need curl install command can be run from any where

    as to fix, you shouldn't generally need any but i'll double check. But it maybe due to wget routine being ran before yum installs in centmin.sh menu option 1 and that then would solely rely on your system OS install already having the required software installed depending on CentOS template
     
    • Informative Informative x 1
  10. eva2000

    eva2000 Administrator Staff Member

    30,181
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    11:14 PM
    Nginx 1.13.x
    MariaDB 5.5
    Should be fixed now, updated routine bypasses wgetver update if nginx is not detected as installed for centmin.sh menu option 1 relevance only
     
    • Agree Agree x 1