I'm attempting to install a product and it's failing the compiler check.
CentOS 5.1
+ echo='/bin/echo -e' + rm -rf configure-tmp + mkdir configure-tmp + tmp_file=configure-tmp/xxx + makedirs=. + /bin/echo -e 'Checking C++ compiler... \c' Checking C++ compiler... + cat + CXX=unknown + for i in '"CC"' '"g++"' '"cc"' '"$CC"' + CC -c configure-tmp/xxx.C + for i in '"CC"' '"g++"' '"cc"' '"$CC"' + g++ -c configure-tmp/xxx.C + for i in '"CC"' '"g++"' '"cc"' '"$CC"' + cc -c configure-tmp/xxx.C + for i in '"CC"' '"g++"' '"cc"' '"$CC"' + -c configure-tmp/xxx.C + test unknown = unknown + /bin/echo -e 'Error: Could not find a working C++ compiler.' Error: Could not find a working C++ compiler. + exit 1 ------------------------------------------------------------------------ --Testing the command manually:
cc -c configure-tmp/xx.C cc: configure-tmp/xx.C: No such file or directory cc: no input files ------------------------------------------------------------------------ -- gcc is installed:
yum info gcc Loading "installonlyn" plugin Setting up repositories Reading repository metadata in from local files Installed Packages Name : gcc Arch : i386 Version: 4.1.2 Release: 14.el5 Size : 9.5 M Repo : installed Summary: Various compilers (C, C++, Objective-C, Java, ...)
Description: The gcc package contains the GNU Compiler Collection version 4.1. You'll need this package in order to compile C code. ------------------------------------------------------------------------ --Any ideas about this 'cc1plus' that is not on my system?
Frank M. Ramaekers Jr. Systems Programmer MCP, MCP+I, MCSE & RHCE American Income Life Insurance Co. Phone: (254)761-6649 1200 Wooded Acres Dr. Fax: (254)741-5777 Waco, Texas 76701
_____________________________________________________ This message contains information which is privileged and confidential and is solely for the use of the intended recipient. If you are not the intended recipient, be aware that any review, disclosure, copying, distribution, or use of the contents of this message is strictly prohibited. If you have received this in error, please destroy it immediately and notify us at PrivacyAct@ailife.com.
On Mon, Dec 17, 2007 at 03:55:55PM -0600, Frank M. Ramaekers alleged:
I'm attempting to install a product and it's failing the compiler check.
CentOS 5.1
- echo='/bin/echo -e'
- rm -rf configure-tmp
- mkdir configure-tmp
- tmp_file=configure-tmp/xxx
- makedirs=.
- /bin/echo -e 'Checking C++ compiler... \c'
Checking C++ compiler... + cat
- CXX=unknown
- for i in '"CC"' '"g++"' '"cc"' '"$CC"'
- CC -c configure-tmp/xxx.C
- for i in '"CC"' '"g++"' '"cc"' '"$CC"'
- g++ -c configure-tmp/xxx.C
- for i in '"CC"' '"g++"' '"cc"' '"$CC"'
- cc -c configure-tmp/xxx.C
- for i in '"CC"' '"g++"' '"cc"' '"$CC"'
- -c configure-tmp/xxx.C
- test unknown = unknown
- /bin/echo -e 'Error: Could not find a working C++ compiler.'
Error: Could not find a working C++ compiler.
It looks like a very old autoconf?
Try './configure CC=gcc CXX=g++'
On Dec 17, 2007 4:55 PM, Frank M. Ramaekers FRamaekers@ailife.com wrote:
gcc is installed:
Yep, but not the other bits to gcc. Do 'yum list gcc*' to see all the available gcc packages. It should become readily apparent which one you need.
Good call! gcc-c++ wasn't installed!
Thanks,
Frank M. Ramaekers Jr. Systems Programmer MCP, MCP+I, MCSE & RHCE American Income Life Insurance Co. Phone: (254)761-6649 1200 Wooded Acres Dr. Fax: (254)741-5777 Waco, Texas 76701
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Jim Perrin Sent: Monday, December 17, 2007 4:03 PM To: CentOS mailing list Subject: Re: [CentOS] configure and assembler
On Dec 17, 2007 4:55 PM, Frank M. Ramaekers FRamaekers@ailife.com wrote:
gcc is installed:
Yep, but not the other bits to gcc. Do 'yum list gcc*' to see all the available gcc packages. It should become readily apparent which one you need.