Closed ovwok closed 6 years ago
Can you compile other projects? Have you performed:
apt-get install build-essential
See this answer for more information.
i input atp-get install build-essential and sudo apt install libc6-dev and then repeted oother steps of configure and make.. seems to be working now thx for the help yegorich
I'm have trouble with ./configure I'm geting Error checking for gcc... gcc checking whether the C compiler works... no configure: error: in
/home/rory/Desktop/socketcand-master': configure: error: C compiler cannot create executables See
config.log' for more detailssteps takin before error rory@rory-Aspire-4810T ~/Desktop/socketcand-master $ sudo apt-get install autoconf rory@rory-Aspire-4810T ~/Desktop/socketcand-master $ sudo apt-get install make rory@rory-Aspire-4810T ~/Desktop/socketcand-master $ sudo apt-get install gcc rory@rory-Aspire-4810T ~/Desktop/socketcand-master $ sudo apt-get install libconfig-dev rory@rory-Aspire-4810T ~/Desktop/socketcand-master $ sudo autoconf rory@rory-Aspire-4810T ~/Desktop/socketcand-master $ ./configure
(here is a copy of config.log)
This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake.
It was created by socketcand configure 0.4.2, which was generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
---------
Platform.
---------
hostname = rory-Aspire-4810T uname -m = x86_64 uname -r = 3.13.0-37-generic uname -s = Linux uname -v = #64-Ubuntu SMP Mon Sep 22 21:28:38 UTC 2014
/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
-----------
Core tests.
-----------
configure:2259: checking for gcc configure:2275: found /usr/bin/gcc configure:2286: result: gcc configure:2515: checking for C compiler version configure:2524: gcc --version >&5 gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2624: error: in
/home/rory/Desktop/socketcand-master': configure:2626: error: C compiler cannot create executables See
config.log' for more details----------------
Cache variables.
----------------
ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set= ac_cv_env_CFLAGS_value= ac_cv_env_CPPFLAGS_set= ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set= ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_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= ac_cv_prog_ac_ct_CC=gcc
-----------------
Output variables.
-----------------
CC='gcc' CFLAGS=' -Wall -Wno-parentheses -DPF_CAN=29 -DAF_CAN=PF_CAN' CPP='' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EGREP='' EXEEXT='' GREP='' LDFLAGS='' LIBOBJS='' LIBS='' LTLIBOBJS='' OBJEXT='' PACKAGE_BUGREPORT='https://github.com/dschanoeh/socketcand/issues' PACKAGE_NAME='socketcand' PACKAGE_STRING='socketcand 0.4.2' PACKAGE_TARNAME='socketcand' PACKAGE_URL='' PACKAGE_VERSION='0.4.2' PATH_SEPARATOR=':' SHELL='/bin/bash' ac_ct_CC='gcc' bindir='${exec_prefix}/bin' build_alias='' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exec_prefix='NONE' host_alias='' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' init_script='yes' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='${docdir}' rc_script='no' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' sysroot='' target_alias=''
-----------
confdefs.h.
-----------
/ confdefs.h /
define PACKAGE_NAME "socketcand"
define PACKAGE_TARNAME "socketcand"
define PACKAGE_VERSION "0.4.2"
define PACKAGE_STRING "socketcand 0.4.2"
define PACKAGE_BUGREPORT "https://github.com/dschanoeh/socketcand/issues"
define PACKAGE_URL ""
configure: exit 77
thanks