1
resposta

Erro ao executar comando ./configure

Olá, Ao rodar comando ./configure na instalação do Git, o mesmo apresenta o erro abaixo, poderiam me ajudar por favor, segue erro:

  $ ./configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = ubuntu
uname -m = x86_64
uname -r = 4.15.0-43-generic
uname -s = Linux
uname -v = #46-Ubuntu SMP Thu Dec 6 14:45:28 UTC 2018

/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
PATH: /home/devops/workspace
PATH: /home/devops/Downloads/git-1.8.3.1


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2310: Setting lib to 'lib' (the default)
configure:2333: Will try -pthread then -lpthread to enable POSIX Threads.
configure:2367: CHECKS for site configuration
configure:2750: CHECKS for programs
configure:2807: checking for cc
configure:2837: result: no
configure:2807: checking for gcc
configure:2837: result: no
configure:2859: error: in `/home/devops/Downloads/git-1.8.3.1':
configure:2861: error: no acceptable C compiler found in $PATH
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=

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
ASCIIDOC=''
CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
DIFF=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT='git@vger.kernel.org'
PACKAGE_NAME='git'
PACKAGE_STRING='git 1.8.3.1'
PACKAGE_TARNAME='git'
PACKAGE_URL=''
PACKAGE_VERSION='1.8.3.1'
PATH_SEPARATOR=':'
SHELL='/bin/bash'
TAR=''
TCLTK_PATH=''
ac_ct_AR=''
ac_ct_CC=''
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'
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}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "git"
#define PACKAGE_TARNAME "git"
#define PACKAGE_VERSION "1.8.3.1"
#define PACKAGE_STRING "git 1.8.3.1"
#define PACKAGE_BUGREPORT "git@vger.kernel.org"
#define PACKAGE_URL ""
1 resposta

Oi Victor,

tente instalar os pacote build-essential através do comando:

sudo apt-get install build-essential

Depois chame novamente ./configure

abs