C++ compiler cannot create executables - Setup

This is a discussion on C++ compiler cannot create executables - Setup ; 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 ...

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.

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.

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?

Re: C++ compiler cannot create executables

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