LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 10-21-2015, 05:03 AM   #1
wileyfox1
LQ Newbie
 
Registered: Oct 2015
Posts: 4

Rep: Reputation: Disabled
C++ compiler cannot create executables error when installing program


hi,

i've been trying to install some bioinformatics software on my ubunu linux system and when i run ./configure, it comes up with this error message. im pretty new to this so i'm not really sure what it means or how to resolve it, so any help would be good. thanks.

Code:
user@it053392:~/Downloads/sortmerna-2.0$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
configure: error: in `/home/user/Downloads/sortmerna-2.0':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
user@it053392:~/Downloads/sortmerna-2.0$
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by sortmerna configure dev, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure 

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

hostname = it053392
uname -m = x86_64
uname -r = 3.13.0-65-generic
uname -s = Linux
uname -v = #106-Ubuntu SMP Fri Oct 2 22:08:27 UTC 2015

/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:2266: checking for a BSD-compatible install
configure:2334: result: /usr/bin/install -c
configure:2345: checking whether build environment is sane
configure:2400: result: yes
configure:2551: checking for a thread-safe mkdir -p
configure:2590: result: /bin/mkdir -p
configure:2597: checking for gawk
configure:2627: result: no
configure:2597: checking for mawk
configure:2613: found /usr/bin/mawk
configure:2624: result: mawk
configure:2635: checking whether make sets $(MAKE)
configure:2657: result: yes
configure:2686: checking whether make supports nested variables
configure:2703: result: yes
configure:2893: checking for g++
configure:2923: result: no
configure:2893: checking for c++
configure:2923: result: no
configure:2893: checking for gpp
configure:2923: result: no
configure:2893: checking for aCC
configure:2923: result: no
configure:2893: checking for CC
configure:2923: result: no
configure:2893: checking for cxx
configure:2923: result: no
configure:2893: checking for cc++
configure:2923: result: no
configure:2893: checking for cl.exe
configure:2923: result: no
configure:2893: checking for FCC
configure:2923: result: no
configure:2893: checking for KCC
configure:2923: result: no
configure:2893: checking for RCC
configure:2923: result: no
configure:2893: checking for xlC_r
configure:2923: result: no
configure:2893: checking for xlC
configure:2923: result: no
configure:2947: checking for C++ compiler version
configure:2956: g++ --version >&5
./configure: line 2958: g++: command not found
configure:2967: $? = 127
configure:2956: g++ -v >&5
./configure: line 2958: g++: command not found
configure:2967: $? = 127
configure:2956: g++ -V >&5
./configure: line 2958: g++: command not found
configure:2967: $? = 127
configure:2956: g++ -qversion >&5
./configure: line 2958: g++: command not found
configure:2967: $? = 127
configure:2987: checking whether the C++ compiler works
configure:3009: g++ -O3   conftest.cpp  >&5
./configure: line 3011: g++: command not found
configure:3013: $? = 127
configure:3051: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "sortmerna"
| #define PACKAGE_TARNAME "sortmerna"
| #define PACKAGE_VERSION "dev"
| #define PACKAGE_STRING "sortmerna dev"
| #define PACKAGE_BUGREPORT "jenya DT kopylov AT gmail DT fr"
| #define PACKAGE_URL "http://bioinfo.lifl.fr/sortmerna"
| #define PACKAGE "sortmerna"
| #define VERSION "dev"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3056: error: in `/home/user/Downloads/sortmerna-2.0':
configure:3058: 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_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_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_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_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

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

ACLOCAL='${SHELL} /home/user/Downloads/sortmerna-2.0/missing aclocal-1.14'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /home/user/Downloads/sortmerna-2.0/missing autoconf'
AUTOHEADER='${SHELL} /home/user/Downloads/sortmerna-2.0/missing autoheader'
AUTOMAKE='${SHELL} /home/user/Downloads/sortmerna-2.0/missing automake-1.14'
AWK='mawk'
CC=''
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX='g++'
CXXDEPMODE=''
CXXFLAGS='-O3'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /home/user/Downloads/sortmerna-2.0/missing makeinfo'
MKDIR_P='/bin/mkdir -p'
OBJEXT=''
OPENMP_CFLAGS=''
PACKAGE='sortmerna'
PACKAGE_BUGREPORT='jenya DT kopylov AT gmail DT fr'
PACKAGE_NAME='sortmerna'
PACKAGE_STRING='sortmerna dev'
PACKAGE_TARNAME='sortmerna'
PACKAGE_URL='http://bioinfo.lifl.fr/sortmerna'
PACKAGE_VERSION='dev'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/bash'
SSE2_EXTRA_CFLAGS=''
STRIP=''
VERSION='dev'
ac_ct_CC=''
ac_ct_CXX=''
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='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
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'
install_sh='${SHELL} /home/user/Downloads/sortmerna-2.0/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
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 "sortmerna"
#define PACKAGE_TARNAME "sortmerna"
#define PACKAGE_VERSION "dev"
#define PACKAGE_STRING "sortmerna dev"
#define PACKAGE_BUGREPORT "jenya DT kopylov AT gmail DT fr"
#define PACKAGE_URL "http://bioinfo.lifl.fr/sortmerna"
#define PACKAGE "sortmerna"
#define VERSION "dev"

configure: exit 77
 
Old 10-22-2015, 10:34 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Code:
./configure: line 2958: g++: command not found

Install a C++ compiler
 
Old 10-22-2015, 02:57 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
the error states the problem very clearly
Quote:
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether the C++ compiler works... no
you never installed a compiler

so on a debian based system
you never installed the the development debs

this is a very basic package that basically every guide will have had you install
Code:
su -
apt-get update
apt-get install build-essential
 
Old 10-25-2015, 04:06 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C compiler cannot create executables ERROR jaisol Linux - General 1 08-02-2006 02:05 PM
error: C compiler cannot create executables lopette Linux - Software 4 09-10-2004 04:06 PM
Need help! error: C compiler cannot create executables Aioria Linux - Newbie 4 07-05-2004 01:15 AM
error: C compiler cannot create executables bublebboy Linux - Newbie 8 06-14-2004 10:38 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 3 12-31-2003 11:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration