Unix Technical Forum

C++ compiler cannot create executables

This is a discussion on C++ compiler cannot create executables within the Linux Operating System forums, part of the Unix Operating Systems category; --> I'm new to Linux. I have a copy of Red Hat Enterprise 5 that I am trying to install ...


Go Back   Unix Technical Forum > Unix Operating Systems > Linux Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-19-2008, 07:05 AM
Matthew256
 
Posts: n/a
Default C++ compiler cannot create executables

I'm new to Linux. I have a copy of Red Hat Enterprise 5 that I am
trying to install libmcrypt on.
I downloaded libmcrypt-2.5.8.tar.gz and extracted it.
I tried to ./configure libmcrypt and got this message:
checking for C++ compiler default output file name... configure:
error: C++ compiler cannot create executables
See `config.log' for more details.

This is odd, because I have not had problems configuring other files.
Complete output from ./configure is at the bottom of this post.

My config.log file is here:
www.osbornewood.com/config.log

After searching the web, I found a couple of things to try:
# g++
bash: g++: command not found
# ./g++
bash: ./g++: No such file or directory
# gcc
gcc: no input files

I'm not sure where to go from here. Any pointers?

[root@w libmcrypt-2.5.8]# ./configure
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of
Makefiles... no
checking whether make sets $(MAKE)... (cached) 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... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name... configure:
error: C++ compiler cannot create executables
See `config.log' for more details.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-19-2008, 07:05 AM
Jean-David Beyer
 
Posts: n/a
Default Re: C++ compiler cannot create executables

Matthew256 wrote:
> I'm new to Linux. I have a copy of Red Hat Enterprise 5 that I am
> trying to install libmcrypt on.


Normally, you would download an rpm for libmcrypt from Red Hat, but that
library is not supported on RHEL5.

> I downloaded libmcrypt-2.5.8.tar.gz and extracted it.
> I tried to ./configure libmcrypt and got this message:
> checking for C++ compiler default output file name... configure:
> error: C++ compiler cannot create executables
> See `config.log' for more details.
>
> This is odd, because I have not had problems configuring other files.
> Complete output from ./configure is at the bottom of this post.
>
> My config.log file is here:
> www.osbornewood.com/config.log
>
> After searching the web, I found a couple of things to try:
> # g++
> bash: g++: command not found
> # ./g++
> bash: ./g++: No such file or directory
> # gcc
> gcc: no input files
>
> I'm not sure where to go from here. Any pointers?
>
> [root@w libmcrypt-2.5.8]# ./configure
> checking build system type... i686-redhat-linux-gnu
> checking host system type... i686-redhat-linux-gnu
> checking target system type... i686-redhat-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of
> Makefiles... no
> checking whether make sets $(MAKE)... (cached) 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... no
> checking for FCC... no
> checking for KCC... no
> checking for RCC... no
> checking for xlC_r... no
> checking for xlC... no
> checking for C++ compiler default output file name... configure:
> error: C++ compiler cannot create executables
> See `config.log' for more details.
>

Did you look in config.log for more details?

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 09:50:01 up 2 days, 33 min, 3 users, load average: 4.47, 4.38, 4.28
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-19-2008, 07:05 AM
Jean-David Beyer
 
Posts: n/a
Default Re: C++ compiler cannot create executables

Jean-David Beyer wrote:
> Matthew256 wrote:
>> I'm new to Linux. I have a copy of Red Hat Enterprise 5 that I am
>> trying to install libmcrypt on.

>
> Normally, you would download an rpm for libmcrypt from Red Hat, but that
> library is not supported on RHEL5.
>
>> I downloaded libmcrypt-2.5.8.tar.gz and extracted it.
>> I tried to ./configure libmcrypt and got this message:
>> checking for C++ compiler default output file name... configure:
>> error: C++ compiler cannot create executables
>> See `config.log' for more details.
>>
>> This is odd, because I have not had problems configuring other files.
>> Complete output from ./configure is at the bottom of this post.
>>
>> My config.log file is here:
>> www.osbornewood.com/config.log
>>
>> After searching the web, I found a couple of things to try:
>> # g++
>> bash: g++: command not found
>> # ./g++
>> bash: ./g++: No such file or directory
>> # gcc
>> gcc: no input files
>>
>> I'm not sure where to go from here. Any pointers?
>>
>> [root@w libmcrypt-2.5.8]# ./configure
>> checking build system type... i686-redhat-linux-gnu
>> checking host system type... i686-redhat-linux-gnu
>> checking target system type... i686-redhat-linux-gnu
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking whether build environment is sane... yes
>> checking for gawk... gawk
>> checking whether make sets $(MAKE)... yes
>> checking whether to enable maintainer-specific portions of
>> Makefiles... no
>> checking whether make sets $(MAKE)... (cached) 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... no
>> checking for FCC... no
>> checking for KCC... no
>> checking for RCC... no
>> checking for xlC_r... no
>> checking for xlC... no
>> checking for C++ compiler default output file name... configure:
>> error: C++ compiler cannot create executables
>> See `config.log' for more details.
>>

> Did you look in config.log for more details?
>

P.S.: Looks like you do not have the c compiler installed.

--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 10:55:01 up 2 days, 1:38, 3 users, load average: 4.01, 4.10, 4.18
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-19-2008, 07:06 AM
Mark
 
Posts: n/a
Default Re: C++ compiler cannot create executables

Matthew256 wrote:
> I'm new to Linux. I have a copy of Red Hat Enterprise 5 that I am
> trying to install libmcrypt on.
> I downloaded libmcrypt-2.5.8.tar.gz and extracted it.
> I tried to ./configure libmcrypt and got this message:
> checking for C++ compiler default output file name... configure:
> error: C++ compiler cannot create executables
> See `config.log' for more details.
>
> This is odd, because I have not had problems configuring other files.
> Complete output from ./configure is at the bottom of this post.
>
> My config.log file is here:
> www.osbornewood.com/config.log
>
> After searching the web, I found a couple of things to try:
> # g++
> bash: g++: command not found
> # ./g++
> bash: ./g++: No such file or directory
> # gcc
> gcc: no input files
>
> I'm not sure where to go from here. Any pointers?
>
> [root@w libmcrypt-2.5.8]# ./configure
> checking build system type... i686-redhat-linux-gnu
> checking host system type... i686-redhat-linux-gnu
> checking target system type... i686-redhat-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> checking whether to enable maintainer-specific portions of
> Makefiles... no
> checking whether make sets $(MAKE)... (cached) 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... no
> checking for FCC... no
> checking for KCC... no
> checking for RCC... no
> checking for xlC_r... no
> checking for xlC... no
> checking for C++ compiler default output file name... configure:
> error: C++ compiler cannot create executables
> See `config.log' for more details.
>


Why not keep it simple? Run yum install to install the package:

$> yum install libmcrypt
.......

Red Hat's already made the rpm package for you, at least I'm sure Fedora
has it so I'd think Enterprise might have it.

$> yum info libmcrypt (as run from Fedora core 6 host)
Loading "installonlyn" plugin
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Available Packages
Name : libmcrypt
Arch : i386
Version: 2.5.7
Release: 5.fc6
Size : 123 k
Repo : fedora extras
Summary: Encryption algorithms library
Description:
Libmcrypt is a thread-safe library providing a uniform interface
to access several block and stream encryption algorithms.


Mark
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-19-2008, 07:06 AM
Matthew256
 
Posts: n/a
Default Re: C++ compiler cannot create executables

> Why not keep it simple? Run yum install to install the package:
>
> $> yum install libmcrypt
> ......


Good call!
I added a couple of repositories before it would work, but it's
installed now.

I tried to install the PHP extension like so:
> Next, compile the mcrypt dynamic module. From PHP source tree of the current version of PHP running on your server:

# cd ext/mcrypt
# phpize
# aclocal
# ./configure
checking for libmcrypt version... configure: error: libmcrypt version
2.5.6 or greater required.

# yum info libmcrypt
Name : libmcrypt
Arch : i386
Version: 2.4.22

This was the repository that I got the package from:

[freshrpms]
name=Red Hat Linux 9 - Freshrpms
baseurl=http://ayo.freshrpms.net/redhat/9/i386/freshrpms

Is there a better one to use?

Thanks!

Matthew

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-19-2008, 07:06 AM
Matthew256
 
Posts: n/a
Default Re: C++ compiler cannot create executables

> checking for libmcrypt version... configure: error: libmcrypt version
> 2.5.6 or greater required.


Doh! My mind disengaged for a moment there.
I did a quick Google for libmcrypt rpm and came up with this site:
dag.wieers.com/rpm/packages/libmcrypt/

It worked like a charm.

On another note, I couldn't figure out how to add it as a repository
to Yum.
http://dag.wieers.com/rpm/FAQ.php#B4
> The configuration of Yum is inside the rpmforge-release package. You need to install it yourself.


I installed rpmforge-release but that didn't seem to add it to /etc/
yum.conf

Any ideas?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:06 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com