LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-22-2012, 01:00 PM   #16
sanpat
LQ Newbie
 
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
Cool ERROR compiling livestatus! checking whether the C++ compiler works... no


Error : C++ compiler

checking whether make sets $(MAKE)... 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 `/tmp/check_mk-1.2.0p3/livestatus.src':
configure: error: C++ compiler cannot create executables
See `config.log' for more details




Solution

[root@skyon check_mk-1.2.0p3]# yum install gcc gcc-c++ kernel-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Package gcc-4.1.2-48.el5.i386 already installed and latest version
Package kernel-devel-2.6.18-194.el5.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.i386 0:4.1.2-48.el5 set to be updated
--> Processing Dependency: libstdc++-devel = 4.1.2-48.el5 for package: gcc-c++
--> Running transaction check
---> Package libstdc++-devel.i386 0:4.1.2-48.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

==================================================================================================== ====================================================================
Package Arch Version Repository Size
==================================================================================================== ====================================================================
Installing:
gcc-c++ i386 4.1.2-48.el5 base 3.4 M
Installing for dependencies:
libstdc++-devel i386 4.1.2-48.el5 base 2.8 M

Transaction Summary
==================================================================================================== ====================================================================
Install 2 Package(s)
Upgrade 0 Package(s)

Install successfully
Installation completed successfully.
Please restart Nagios and Apache in order to update/active check_mk's web pages.

Thanks
 
Old 06-21-2017, 02:34 PM   #17
fupa
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Rep: Reputation: Disabled
I'm hitting the same error "C++ compiler cannot create executables"
The difference here is I'm using Cygwin on Windows to configure a tarball. G++ is installed.
See below image:
http://imgur.com/a/I3hwg
 
Old 06-22-2017, 02:18 PM   #18
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Check config.log for details
 
Old 06-22-2017, 03:47 PM   #19
fupa
LQ Newbie
 
Registered: Jun 2017
Posts: 3

Rep: Reputation: Disabled
Ya the config.log was pretty useless. Turns on this post on SO had the answer https://stackoverflow.com/questions/...-cygwin-minigw
 
Old 06-22-2017, 04:17 PM   #20
Laserbeak
Member
 
Registered: Jan 2017
Location: Manhattan, NYC NY
Distribution: Mac OS X, iOS, Solaris
Posts: 508

Rep: Reputation: 143Reputation: 143
You probably had some dummy shell named c++ somewhere, but it wasn't a real C++ compiler.
 
  


Reply



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
configure: error: C compiler cannot create executables watashiwaotaku7 Linux - General 7 10-22-2009 09:40 AM
error: "c compiler cannot create executables" when trying to run ./configure fedoraemu Linux - Software 2 04-24-2007 07:43 PM
configure: error: C compiler cannot create executables strimp099 Linux - Software 2 07-11-2005 07:23 PM
error: C compiler cannot create executables lopette Linux - Software 4 09-10-2004 04:06 PM
error: C compiler cannot create executables bublebboy Linux - Newbie 8 06-14-2004 10:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 PM.

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