Results 1 to 3 of 3

Thread: ClamAV Install from Source Error

  1. #1
    Join Date
    Jan 2016
    Beans
    88
    Distro
    Ubuntu Mate

    ClamAV Install from Source Error

    I was trying to install the newest version of ClamAV but I got an error. I was hoping someone would help me decipher the log to see what went wrong. I don't have much experience installing from source. I've only done it a few times. Thanks!

    Code:
    This file contains any messages produced by compilers while
    running configure, to aid debugging if configure makes a mistake.
    
    It was created by ClamAV configure 0.101.2, which was
    generated by GNU Autoconf 2.69.  Invocation command line was
    
      $ ./configure 
    
    ## --------- ##
    ## Platform. ##
    ## --------- ##
    
    hostname = gateway
    uname -m = i686
    uname -r = 4.18.0-25-generic
    uname -s = Linux
    uname -v = #26~18.04.1-Ubuntu SMP Thu Jun 27 07:27:34 UTC 2019
    
    /usr/bin/uname -p = unknown
    /bin/uname -X     = unknown
    
    /bin/arch              = unknown
    /usr/bin/arch -k       = unknown
    /usr/convex/getsysinfo = unknown
    /usr/bin/hostinfo      = unknown
    /bin/machine           = unknown
    /usr/bin/oslevel       = unknown
    /bin/universe          = unknown
    
    PATH: /usr/local/sbin
    PATH: /usr/local/bin
    PATH: /usr/sbin
    PATH: /usr/bin
    PATH: /sbin
    PATH: /bin
    PATH: /usr/games
    PATH: /usr/local/games
    PATH: /snap/bin
    
    
    ## ----------- ##
    ## Core tests. ##
    ## ----------- ##
    
    configure:2871: checking for g++
    configure:2901: result: no
    configure:2871: checking for c++
    configure:2901: result: no
    configure:2871: checking for gpp
    configure:2901: result: no
    configure:2871: checking for aCC
    configure:2901: result: no
    configure:2871: checking for CC
    configure:2901: result: no
    configure:2871: checking for cxx
    configure:2901: result: no
    configure:2871: checking for cc++
    configure:2901: result: no
    configure:2871: checking for cl.exe
    configure:2901: result: no
    configure:2871: checking for FCC
    configure:2901: result: no
    configure:2871: checking for KCC
    configure:2901: result: no
    configure:2871: checking for RCC
    configure:2901: result: no
    configure:2871: checking for xlC_r
    configure:2901: result: no
    configure:2871: checking for xlC
    configure:2901: result: no
    configure:2925: checking for C++ compiler version
    configure:2934: g++ --version >&5
    ./configure: line 2936: g++: command not found
    configure:2945: $? = 127
    configure:2934: g++ -v >&5
    ./configure: line 2936: g++: command not found
    configure:2945: $? = 127
    configure:2934: g++ -V >&5
    ./configure: line 2936: g++: command not found
    configure:2945: $? = 127
    configure:2934: g++ -qversion >&5
    ./configure: line 2936: g++: command not found
    configure:2945: $? = 127
    configure:2965: checking whether the C++ compiler works
    configure:2987: g++    conftest.cpp  >&5
    ./configure: line 2989: g++: command not found
    configure:2991: $? = 127
    configure:3029: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "ClamAV"
    | #define PACKAGE_TARNAME "clamav"
    | #define PACKAGE_VERSION "0.101.2"
    | #define PACKAGE_STRING "ClamAV 0.101.2"
    | #define PACKAGE_BUGREPORT "https://bugzilla.clamav.net/"
    | #define PACKAGE_URL "https://www.clamav.net/"
    | /* end confdefs.h.  */
    | 
    | int
    | main ()
    | {
    | 
    |   ;
    |   return 0;
    | }
    configure:3034: error: in `/home/gateway/clamav-0.101.2':
    configure:3036: error: C++ compiler cannot create executables
    See `config.log' for more details
    
    ## ---------------- ##
    ## Cache variables. ##
    ## ---------------- ##
    
    ac_cv_env_CCC_set=
    ac_cv_env_CCC_value=
    ac_cv_env_CC_set=
    ac_cv_env_CC_value=
    ac_cv_env_CFLAGS_set=
    ac_cv_env_CFLAGS_value=
    ac_cv_env_CHECK_CFLAGS_set=
    ac_cv_env_CHECK_CFLAGS_value=
    ac_cv_env_CHECK_LIBS_set=
    ac_cv_env_CHECK_LIBS_value=
    ac_cv_env_CPPFLAGS_set=
    ac_cv_env_CPPFLAGS_value=
    ac_cv_env_CPP_set=
    ac_cv_env_CPP_value=
    ac_cv_env_CXXCPP_set=
    ac_cv_env_CXXCPP_value=
    ac_cv_env_CXXFLAGS_set=
    ac_cv_env_CXXFLAGS_value=
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_LDFLAGS_set=
    ac_cv_env_LDFLAGS_value=
    ac_cv_env_LIBMSPACK_CFLAGS_set=
    ac_cv_env_LIBMSPACK_CFLAGS_value=
    ac_cv_env_LIBMSPACK_LIBS_set=
    ac_cv_env_LIBMSPACK_LIBS_value=
    ac_cv_env_LIBS_set=
    ac_cv_env_LIBS_value=
    ac_cv_env_LT_SYS_LIBRARY_PATH_set=
    ac_cv_env_LT_SYS_LIBRARY_PATH_value=
    ac_cv_env_PKG_CONFIG_LIBDIR_set=
    ac_cv_env_PKG_CONFIG_LIBDIR_value=
    ac_cv_env_PKG_CONFIG_PATH_set=
    ac_cv_env_PKG_CONFIG_PATH_value=
    ac_cv_env_PKG_CONFIG_set=
    ac_cv_env_PKG_CONFIG_value=
    ac_cv_env_SYSTEMD_CFLAGS_set=
    ac_cv_env_SYSTEMD_CFLAGS_value=
    ac_cv_env_SYSTEMD_LIBS_set=
    ac_cv_env_SYSTEMD_LIBS_value=
    ac_cv_env_YACC_set=
    ac_cv_env_YACC_value=
    ac_cv_env_YFLAGS_set=
    ac_cv_env_YFLAGS_value=
    ac_cv_env_build_alias_set=
    ac_cv_env_build_alias_value=
    ac_cv_env_host_alias_set=
    ac_cv_env_host_alias_value=
    ac_cv_env_target_alias_set=
    ac_cv_env_target_alias_value=
    
    ## ----------------- ##
    ## Output variables. ##
    ## ----------------- ##
    
    ACLOCAL=''
    AMDEPBACKSLASH=''
    AMDEP_FALSE=''
    AMDEP_TRUE=''
    AMTAR=''
    AM_BACKSLASH=''
    AM_DEFAULT_V=''
    AM_DEFAULT_VERBOSITY=''
    AM_V=''
    AR=''
    AUTOCONF=''
    AUTOHEADER=''
    AUTOMAKE=''
    AWK=''
    BUILD_CLAMD_FALSE=''
    BUILD_CLAMD_TRUE=''
    BUILD_CONFIGURE_FLAGS=''
    CC=''
    CCDEPMODE=''
    CFGDIR=''
    CFLAGS=''
    CHECK_CFLAGS=''
    CHECK_CPPFLAGS=''
    CHECK_LIBS=''
    CLAMAVGROUP=''
    CLAMAVUSER=''
    CLAMAV_MILTER_CPPFLAGS=''
    CLAMAV_MILTER_LIBS=''
    CLAMBC_CPPFLAGS=''
    CLAMBC_LIBS=''
    CLAMCONF_CPPFLAGS=''
    CLAMCONF_LIBS=''
    CLAMDSCAN_CPPFLAGS=''
    CLAMDSCAN_LIBS=''
    CLAMDTOP_CPPFLAGS=''
    CLAMDTOP_LIBS=''
    CLAMD_CPPFLAGS=''
    CLAMD_LIBS=''
    CLAMMEM_CPPFLAGS=''
    CLAMMEM_LIBS=''
    CLAMSCAN_CPPFLAGS=''
    CLAMSCAN_LIBS=''
    CLAMSUBMIT_CFLAGS=''
    CLAMSUBMIT_LIBS=''
    CONVENIENCE_LTDL_FALSE=''
    CONVENIENCE_LTDL_TRUE=''
    CPP=''
    CPPFLAGS=''
    CURSES_CPPFLAGS=''
    CURSES_LIBS=''
    CXX='g++'
    CXXCPP=''
    CXXDEPMODE=''
    CXXFLAGS=''
    CYGPATH_W=''
    DBDIR=''
    DEFINE_SF32_PREFIX=''
    DEFINE_SF64_PREFIX=''
    DEFS=''
    DEPDIR=''
    DLLTOOL=''
    DSYMUTIL=''
    DUMPBIN=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_CLAMSUBMIT_FALSE=''
    ENABLE_CLAMSUBMIT_TRUE=''
    ENABLE_COVERAGE_FALSE=''
    ENABLE_COVERAGE_TRUE=''
    ENABLE_FUZZ_FALSE=''
    ENABLE_FUZZ_TRUE=''
    ENABLE_LIBFRESHCLAM_FALSE=''
    ENABLE_LIBFRESHCLAM_TRUE=''
    ENABLE_LLVM_FALSE=''
    ENABLE_LLVM_TRUE=''
    ENABLE_UNRAR_FALSE=''
    ENABLE_UNRAR_TRUE=''
    ENABLE_YARA_FALSE=''
    ENABLE_YARA_TRUE=''
    EXEEXT=''
    FGREP=''
    FRESHCLAM_CPPFLAGS=''
    FRESHCLAM_LIBS=''
    GCOV=''
    GENERATE_WARNING=''
    GENHTML=''
    GETENT=''
    GPERF=''
    GREP=''
    HAVE_CURSES_FALSE=''
    HAVE_CURSES_TRUE=''
    HAVE_LIBBZ2_FALSE=''
    HAVE_LIBBZ2_TRUE=''
    HAVE_LIBCHECK_FALSE=''
    HAVE_LIBCHECK_TRUE=''
    HAVE_LIBXML2_FALSE=''
    HAVE_LIBXML2_TRUE=''
    HAVE_MILTER_FALSE=''
    HAVE_MILTER_TRUE=''
    HAVE_STRNI=''
    HAVE_YARA=''
    ICONV_CPPFLAGS=''
    ICONV_LDFLAGS=''
    INCLTDL=''
    INSTALL_DATA=''
    INSTALL_LTDL_FALSE=''
    INSTALL_LTDL_TRUE=''
    INSTALL_PROGRAM=''
    INSTALL_SCRIPT=''
    INSTALL_STRIP_PROGRAM=''
    INSTALL_SYSTEMD_UNITS_FALSE=''
    INSTALL_SYSTEMD_UNITS_TRUE=''
    INT16_DEF=''
    INT32_DEF=''
    INT64_DEF=''
    INT8_DEF=''
    INT_TYPES_HEADER=''
    JSON_CPPFLAGS=''
    JSON_LDFLAGS=''
    JSON_LIBS=''
    LCOV=''
    LD=''
    LDFLAGS=''
    LEX=''
    LEXLIB=''
    LEX_OUTPUT_ROOT=''
    LIBADD_DL=''
    LIBADD_DLD_LINK=''
    LIBADD_DLOPEN=''
    LIBADD_SHL_LOAD=''
    LIBBZ2=''
    LIBBZ2_PREFIX=''
    LIBCLAMAV_CPPFLAGS=''
    LIBCLAMAV_LIBS=''
    LIBCLAMAV_VERSION=''
    LIBCLAMSHARED_CPPFLAGS=''
    LIBLTDL=''
    LIBM=''
    LIBMSPACK_CFLAGS=''
    LIBMSPACK_LIBS=''
    LIBOBJS=''
    LIBPRELUDE_CFLAGS=''
    LIBPRELUDE_CONFIG=''
    LIBPRELUDE_CONFIG_PREFIX=''
    LIBPRELUDE_LDFLAGS=''
    LIBPRELUDE_LIBS=''
    LIBPRELUDE_PREFIX=''
    LIBPRELUDE_PTHREAD_CFLAGS=''
    LIBS=''
    LIBTOOL=''
    LIPO=''
    LN_S=''
    LTDLDEPS=''
    LTDLINCL=''
    LTDLOPEN=''
    LTLIBBZ2=''
    LTLIBOBJS=''
    LT_ARGZ_H=''
    LT_CONFIG_H=''
    LT_DLLOADERS=''
    LT_DLPREOPEN=''
    LT_SYS_LIBRARY_PATH=''
    MAINT=''
    MAINTAINER_MODE_FALSE=''
    MAINTAINER_MODE_TRUE=''
    MAKEINFO=''
    MANIFEST_TOOL=''
    MKDIR_P=''
    NM=''
    NMEDIT=''
    OBJDUMP=''
    OBJEXT=''
    OTOOL64=''
    OTOOL=''
    PACKAGE=''
    PACKAGE_BUGREPORT='https://bugzilla.clamav.net/'
    PACKAGE_NAME='ClamAV'
    PACKAGE_STRING='ClamAV 0.101.2'
    PACKAGE_TARNAME='clamav'
    PACKAGE_URL='https://www.clamav.net/'
    PACKAGE_VERSION='0.101.2'
    PATH_SEPARATOR=':'
    PCRE_CPPFLAGS=''
    PCRE_LIBS=''
    PKG_CONFIG=''
    PKG_CONFIG_LIBDIR=''
    PKG_CONFIG_PATH=''
    RANLIB=''
    SED=''
    SET_MAKE=''
    SHELL='/bin/bash'
    SIGTOOL_CPPFLAGS=''
    SSL_CPPFLAGS=''
    SSL_LDFLAGS=''
    SSL_LIBS=''
    STRIP=''
    SYSTEMD_CFLAGS=''
    SYSTEMD_LIBS=''
    SYSTEM_LFS_FTS_FALSE=''
    SYSTEM_LFS_FTS_TRUE=''
    THREAD_LIBS=''
    TH_SAFE=''
    UINT16_DEF=''
    UINT32_DEF=''
    UINT64_DEF=''
    UINT8_DEF=''
    USE_INTERNAL_MSPACK_FALSE=''
    USE_INTERNAL_MSPACK_TRUE=''
    VERSION=''
    VERSIONSCRIPTFLAG=''
    VERSIONSCRIPT_FALSE=''
    VERSIONSCRIPT_TRUE=''
    WERR_CFLAGS=''
    WERR_CFLAGS_MILTER=''
    XML_CPPFLAGS=''
    XML_LIBS=''
    YACC=''
    YFLAGS=''
    ac_ct_AR=''
    ac_ct_CC=''
    ac_ct_CXX=''
    ac_ct_DUMPBIN=''
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__fastdepCXX_FALSE=''
    am__fastdepCXX_TRUE=''
    am__include=''
    am__isrc=''
    am__leading_dot=''
    am__nodep=''
    am__quote=''
    am__tar=''
    am__untar=''
    bindir='${exec_prefix}/bin'
    build=''
    build_alias=''
    build_cpu=''
    build_os=''
    build_vendor=''
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    dvidir='${docdir}'
    exec_prefix='NONE'
    host=''
    host_alias=''
    host_cpu=''
    host_os=''
    host_vendor=''
    htmldir='${docdir}'
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh=''
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    llvmconfig=''
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    ltdl_LIBOBJS=''
    ltdl_LTLIBOBJS=''
    mandir='${datarootdir}/man'
    mkdir_p=''
    oldincludedir='/usr/include'
    pcreconfig=''
    pdfdir='${docdir}'
    prefix='NONE'
    program_transform_name='s,x,x,'
    psdir='${docdir}'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    subdirs=''
    sys_symbol_underscore=''
    sysconfdir='${prefix}/etc'
    systemdsystemunitdir=''
    target=''
    target_alias=''
    target_cpu=''
    target_os=''
    target_vendor=''
    
    ## ----------- ##
    ## confdefs.h. ##
    ## ----------- ##
    
    /* confdefs.h */
    #define PACKAGE_NAME "ClamAV"
    #define PACKAGE_TARNAME "clamav"
    #define PACKAGE_VERSION "0.101.2"
    #define PACKAGE_STRING "ClamAV 0.101.2"
    #define PACKAGE_BUGREPORT "https://bugzilla.clamav.net/"
    #define PACKAGE_URL "https://www.clamav.net/"
    
    configure: exit 77
    Last edited by deadflowr; July 30th, 2019 at 04:56 PM. Reason: changed tags to code

  2. #2
    Join Date
    Aug 2016
    Location
    Wandering
    Beans
    Hidden!
    Distro
    Xubuntu Development Release

    Re: ClamAV Install from Source Error

    With realization of one's own potential and self-confidence in one's ability, one can build a better world.
    Dalai Lama>>
    Code Tags

  3. #3
    Join Date
    Nov 2008
    Location
    Metro Boston
    Beans
    14,429
    Distro
    Kubuntu Development Release

    Re: ClamAV Install from Source Error

    Did you run "sudo apt update; sudo apt install build-essential" first? You don't have the g++ compiler, or perhaps even gcc. Out-of-the-box Ubuntu does not include the tools needed to compile software; you must install the build-essential package to do so.

    Once you've installed build-essential you should run "sudo apt-get build-dep clamav" to bring in any needed source packages and libraries on which clamav depends. You'll need to uncomment the deb-src directives for "main" in /etc/apt/sources.list first to add the source repositories to your installation. On 19.04 they look like this
    Code:
    deb-src http://us.archive.ubuntu.com/ubuntu/ disco-updates main restricted
    deb-src http://security.ubuntu.com/ubuntu disco-security main restricted
    but on your system it's likely "disco" is replaced with the name of a different "flavor." You'll need to run "sudo apt update" after this to add the repositories to your system.

    On my system running "build-dep clamav" returns this list of packages
    Code:
    The following NEW packages will be installed:
      check electric-fence libcurl4-openssl-dev libjson-c-dev libmilter-dev libmilter1.0.1 libmspack-dev libmspack0 libpcre2-32-0
      libpcre2-dev libpcre2-posix0 libssl-dev libsubunit-dev libsubunit0 libsystemd-dev libtfm-dev libtfm1 libxml2-dev
    Last edited by SeijiSensei; July 30th, 2019 at 05:02 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •